Coder Social home page Coder Social logo

theabdosabbagh / discordscraper Goto Github PK

View Code? Open in Web Editor NEW
42.0 4.0 4.0 285 KB

Discord guild members profile picture, username, ID and Bio scraper.

License: MIT License

Python 100.00%
discord discord-guild discord-pfp discord-pfp-downloader discord-pfp-scraper discord-scraper discord-selfbot discord-guild-scraper

discordscraper's Introduction

Discord Guild Members Scraper

Check out my other project
Darkend

  • Give the project a star if you liked it! It'll help other people find it :)
  • This project uses discord.py-self. Using selfbots is against Discord's TOS, use this project at your own risk.
  • The goal of the project is scraping users in a specifed guild. Scrapes pfps, usernames, IDs, pfp urls and bios.
  • You can buy me a coffee if this project has helped you and you wanted to support me!

Features

  • Ability to scrape the profile pictures of members in the following formats:
    • webp
    • png
    • jpg
    • jpeg
  • Scrape all members Usernames, Discrimnators, IDs, Bios and PFPs to a txt file.
  • Ability to specify which guilds to scrape in the JSON config file.
  • Each guild has it's own folder so the data is easy to handle.

Notes

  • There are plenty of things that could be added to the script, feel free to contribute!
  • This project is inspired by sertchan's JS-based tool.

Installation

  • Clone repo from git
>>> git clone https://github.com/Sxvxgee/Discord-Scraper
  • Install the dependencies.
>>> pip install -r requirements.txt
  • Rename config.json.example to config.json and edit required settings.
    • Input channel_id if you wish to scrape members from a particular channel; else leave 0

Usage

>>> cd Discord-Scraper/source
>>> python main.py 

Project screenshots

License Disclaimer

This project is licensed under the MIT license.

Note

I will be working on a custom Disocrd library for everything a user account can do very soon, and it will be used in this project instead of discord.py-self to ensure it's faster and better than ever.

discordscraper's People

Contributors

theabdosabbagh avatar theprivatepanda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

discordscraper's Issues

Need your discord or telegram

I coud not figure out how to contact you directly so I decided to open an issue here. my discord and telegram is @BadBadBoss. Please message me or give me a way to contact you.

TypeError: __init__() missing 1 required keyword-only argument: 'intents'

What could be the problem?

Traceback (most recent call last):
  File "/Users/xxx/Downloads/Discord-Scraper2/source/main.py", line 2, in <module>
    from internal.selfbot import client
  File "/Users/xxx/Downloads/Discord-Scraper2/source/internal/selfbot.py", line 7, in <module>
    client = Client(chunk_guilds_at_startup = False)
TypeError: __init__() missing 1 required keyword-only argument: 'intents'

discord.errors.LoginFailure: Improper token has been passed

Traceback (most recent call last):
  File "/home/codespace/.local/lib/python3.10/site-packages/discord/http.py", line 1058, in static_login
    data = await self.get_me()
  File "/home/codespace/.local/lib/python3.10/site-packages/discord/http.py", line 934, in request
    raise HTTPException(response, data)
discord.errors.HTTPException: 401 Unauthorized (error code: 0): 401: Unauthorized

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/workspaces/DiscordScraper/source/main.py", line 9, in <module>
    client.run(config["token"]) # type: ignore
  File "/home/codespace/.local/lib/python3.10/site-packages/discord/client.py", line 1106, in run
    asyncio.run(runner())
  File "/usr/local/python/3.10.13/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/local/python/3.10.13/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/home/codespace/.local/lib/python3.10/site-packages/discord/client.py", line 1095, in runner
    await self.start(token, reconnect=reconnect)
  File "/home/codespace/.local/lib/python3.10/site-packages/discord/client.py", line 1025, in start
    await self.login(token)
  File "/home/codespace/.local/lib/python3.10/site-packages/discord/client.py", line 867, in login
    data = await state.http.static_login(token.strip())
  File "/home/codespace/.local/lib/python3.10/site-packages/discord/http.py", line 1062, in static_login
    raise LoginFailure('Improper token has been passed') from exc
discord.errors.LoginFailure: Improper token has been passed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.