{"id":15638074,"url":"https://github.com/dmuhs/pastebin-scraper","last_synced_at":"2025-10-14T00:31:01.057Z","repository":{"id":43115919,"uuid":"60218595","full_name":"dmuhs/pastebin-scraper","owner":"dmuhs","description":"Live-scraping pastebin to fight boredom.","archived":true,"fork":false,"pushed_at":"2022-06-18T16:27:26.000Z","size":49,"stargazers_count":111,"open_issues_count":7,"forks_count":72,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-13T03:49:23.452Z","etag":null,"topics":["multithreading","mysql","pastebin","python","scraper","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmuhs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-01T23:54:20.000Z","updated_at":"2025-04-12T16:46:46.000Z","dependencies_parsed_at":"2022-09-09T11:51:52.179Z","dependency_job_id":null,"html_url":"https://github.com/dmuhs/pastebin-scraper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dmuhs/pastebin-scraper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmuhs%2Fpastebin-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmuhs%2Fpastebin-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmuhs%2Fpastebin-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmuhs%2Fpastebin-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmuhs","download_url":"https://codeload.github.com/dmuhs/pastebin-scraper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmuhs%2Fpastebin-scraper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017353,"owners_count":26086052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["multithreading","mysql","pastebin","python","scraper","sqlite"],"created_at":"2024-10-03T11:17:45.565Z","updated_at":"2025-10-14T00:31:00.768Z","avatar_url":"https://github.com/dmuhs.png","language":"Python","readme":"## pastebin-scraper\n\nThis is a multithreaded scraping script for [Pastebin](http://pastebin.com/). It scrapes the main site for new pastes, downloads their raw content and processes them by a user-defined output format.\n\n### WHY?\nFun.\n\n### Installation\nThe usual dance.\n```\npip install -r requirements.txt\n```\n\nDefine all required specs in `settings.ini`. Should you decide to go with a database output, make sure the respective connector is installed. At the moment MySQL with `pymysql` and SQLite with the standard built in Python 3 connector are supported.\n\nAlso note that the file output creates a subdirectory `output` and dumps every paste as a separate file into it.\n\n### Settings\n`ini` is a highly underrated file format. Here are some definitions on what the settings parameter actually do.\n\n#### GENERAL\n- `PasteLimit` Stop after having scraped n pastes. Set to 0 for indefinite scraping\n- `PBLink` URL to Pastebin or another equivalent site\n- `DownloadWorkers` Number of workers that download the raw paste content and further process it\n-  `NewPasteCheckInterval` Time to wait before checking the main site for new pastes again\n- `IPBlockedWaitTime` Time to wait until checking the main site again after the scraper's IP has been blocked\n\n#### LOGGING\n- `RotationLog` Location of log file that contains debug output\n- `MaxRotationSize` Size in bytes before another log file is created\n- `RotationBackupCount` Maximum number of log files to keep\n\n#### STDOUT/ FILE\n- `Enable` Enable formatted stdout output of paste data\n- `ContentDisplayLimit` Maximum amount of characters to show before content is cut off (0 to display all)\n- `ShowName` Display the paste name\n- `ShowLang` Display the paste language\n- `ShowLink` Display the complete paste link\n- `ShowData` Display the raw paste content\n- `DataEncoding` Encoding of the raw paste data\n\n#### MYSQL\n- `Enable` Enable MySQL output\n- `TableName` Main table name to insert data into\n- `Host` MySQL server host\n- `Port` MySQL server port\n- `Username` MySQL server user\n- `Password` User password\n\n#### SQLITE\n- `Enable` Enable SQLite output\n- `Filename` Filename the db should be saved as (usually ends with .db)\n- `TableName` Main table name to insert data into\n\n---\n\nIf you use this thing for some cool data analysis or even research, let me know if I can help!\n\nInspiration for this scraper was taken from [here](http://www.michielovertoom.com/python/pastebin-abused/).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmuhs%2Fpastebin-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmuhs%2Fpastebin-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmuhs%2Fpastebin-scraper/lists"}