{"id":18710710,"url":"https://github.com/apify/actor-scrapy-books-example","last_synced_at":"2025-11-03T16:30:03.314Z","repository":{"id":212101761,"uuid":"730695186","full_name":"apify/actor-scrapy-books-example","owner":"apify","description":"Example of Python Scrapy project. It scrapes book data from https://books.toscrape.com/.","archived":false,"fork":false,"pushed_at":"2024-04-04T10:52:26.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-16T16:19:53.033Z","etag":null,"topics":["apify","scrapy"],"latest_commit_sha":null,"homepage":"https://apify.com/vdusek/scrapy-books-example","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/apify.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-12T13:29:43.000Z","updated_at":"2024-04-18T09:07:21.000Z","dependencies_parsed_at":"2024-11-07T12:42:46.195Z","dependency_job_id":"4a5ad30b-9d92-4910-8f42-5f97f9760fda","html_url":"https://github.com/apify/actor-scrapy-books-example","commit_stats":null,"previous_names":["apify/actor-scrapy-books-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Factor-scrapy-books-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Factor-scrapy-books-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Factor-scrapy-books-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Factor-scrapy-books-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apify","download_url":"https://codeload.github.com/apify/actor-scrapy-books-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239576225,"owners_count":19662106,"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":["apify","scrapy"],"created_at":"2024-11-07T12:35:25.245Z","updated_at":"2025-11-03T16:30:03.309Z","avatar_url":"https://github.com/apify.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Actor Scrapy Books Example\n\nThis project serves as an example of Python Scrapy project. It scrapes book data from [books.toscrape.com](https://books.toscrape.com/).\n\n## Getting Started\n\n### Install Apify CLI\n\nTo use this scraper, you need to install the Apify CLI. Follow the instructions [here](https://docs.apify.com/cli/docs/installation).\n\n### Install Python and Virtualenv\n\nMake sure you have Python installed. If not, download it [here](https://www.python.org/). Any version supported by [Apify SDK](https://pypi.org/project/apify/) and [Scrapy](https://pypi.org/project/Scrapy/) should be fine.\n\nAdditionally, install [uv](https://docs.astral.sh/uv/) package manager.\n\n```bash\npip install uv\n```\n\n## Run the Actor locally\n\n### Prepare Python environment\n\nInstall Python dependencies:\n\n```bash\nmake install-dev\n```\n\nActivate the virtual environment:\n\n```bash\nsource .venv/bin/activate\n```\n\n### Run the scraper as Scrapy project\n\nThe project is still runnable as a Scrapy project. Execute the following command:\n\n```bash\nscrapy crawl book_spider -o books.json\n```\n\n### Run the scraper as Apify Actor\n\nRun the scraper as an Apify Actor using:\n\n```bash\napify run --purge\n```\n\n## Deploy on Apify\n\n### Log in to Apify\n\nYou will need to provide your [Apify API Token](https://console.apify.com/account/integrations) to complete this action.\n\n```bash\napify login\n```\n\n### Deploy your Actor\n\nThis command will deploy and build the Actor on the Apify Platform. You can find your newly created Actor under [Actors -\u003e My Actors](https://console.apify.com/actors?tab=my).\n\n```Bash\napify push\n```\n\n## Documentation reference\n\nTo learn more about Apify and Actors, take a look at the following resources:\n\n- [Integrating Scrapy projects](https://docs.apify.com/cli/docs/integrating-scrapy)\n- [Apify SDK for Python](https://docs.apify.com/sdk/js)\n- [Apify Platform](https://docs.apify.com/platform)\n- [Join our developer community on Discord](https://discord.com/invite/jyEM2PRvMU)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapify%2Factor-scrapy-books-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapify%2Factor-scrapy-books-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapify%2Factor-scrapy-books-example/lists"}