{"id":16330111,"url":"https://github.com/rmax/dirbot-mysql","last_synced_at":"2025-03-16T14:31:09.307Z","repository":{"id":136718449,"uuid":"612696","full_name":"rmax/dirbot-mysql","owner":"rmax","description":"Scrapy project based on dirbot to show how to use Twisted's adbapi to store the scraped data in MySQL.","archived":false,"fork":false,"pushed_at":"2013-10-24T23:07:04.000Z","size":128,"stargazers_count":117,"open_issues_count":3,"forks_count":54,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-02-27T10:39:28.662Z","etag":null,"topics":[],"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/rmax.png","metadata":{"files":{"readme":"README.rst","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":"2010-04-15T22:11:44.000Z","updated_at":"2024-08-12T17:29:03.000Z","dependencies_parsed_at":"2023-03-13T21:15:31.739Z","dependency_job_id":null,"html_url":"https://github.com/rmax/dirbot-mysql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmax%2Fdirbot-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmax%2Fdirbot-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmax%2Fdirbot-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmax%2Fdirbot-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rmax","download_url":"https://codeload.github.com/rmax/dirbot-mysql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243818194,"owners_count":20352629,"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","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":[],"created_at":"2024-10-10T23:18:31.892Z","updated_at":"2025-03-16T14:31:08.925Z","avatar_url":"https://github.com/rmax.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"======\ndirbot\n======\n\nThis is a Scrapy project to scrape websites from public web directories.\n\nThis project is only meant for educational purposes.\n\nItems\n=====\n\nThe items scraped by this project are websites, and the item is defined in the\nclass::\n\n    dirbot.items.Website\n\nSee the source code for more details.\n\nSpiders\n=======\n\nThis project contains one spider called ``dmoz`` that you can see by running::\n\n    scrapy list\n\nSpider: dmoz\n------------\n\nThe ``dmoz`` spider scrapes the Open Directory Project (dmoz.org), and it's\nbased on the dmoz spider described in the `Scrapy tutorial`_\n\nThis spider doesn't crawl the entire dmoz.org site but only a few pages by\ndefault (defined in the ``start_pages`` attribute). These pages are:\n\n* http://www.dmoz.org/Computers/Programming/Languages/Python/Books/\n* http://www.dmoz.org/Computers/Programming/Languages/Python/Resources/\n\nSo, if you run the spider regularly (with ``scrapy crawl dmoz``) it will scrape\nonly those two pages.\n\n.. _Scrapy tutorial: http://doc.scrapy.org/intro/tutorial.html \n\nPipelines\n=========\n\nFiltering by words\n------------------\n\nA pipeline to filter out websites containing certain forbidden words in their\ndescription. This pipeline is defined in the class::\n\n    dirbot.pipelines.FilterWordsPipeline\n\nRequiring certain item fields\n-----------------------------\n\nA pipeline to discard items that lack of certain fields. This pipeline is\ndefined in the class::\n\n    dirbot.pipelines.RequiredFieldsPipeline\n\n\nStoring items in a MySQL database\n---------------------------------\n\nA pipeline to store (insert or update) scraped items in a MySQL database. This\npipeline is defined in the class::\n\n    dirbot.pipelines.MySQLStorePipeline\n\nThe database schema is defined in ``db/mysql.sql`` and the settings file\ncontains the default ``MYSQL_*`` settings values. The scraped items will be\nstored in the ``website`` database table.\n\n.. note::\n\n    It is *required* to have set up the database schema *before* running the spider.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmax%2Fdirbot-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frmax%2Fdirbot-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmax%2Fdirbot-mysql/lists"}