{"id":17720143,"url":"https://github.com/theden/bbc-crawl","last_synced_at":"2025-03-31T13:16:38.360Z","repository":{"id":83727671,"uuid":"80979408","full_name":"TheDen/BBC-Crawl","owner":"TheDen","description":"Spider that crawles bbc.com articles and builds an api to query","archived":false,"fork":false,"pushed_at":"2018-05-28T16:35:41.000Z","size":36,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-30T01:18:20.359Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://bbc-crawl.herokuapp.com/","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/TheDen.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":"2017-02-05T08:20:15.000Z","updated_at":"2018-05-28T16:35:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"50222853-5bf1-46fa-9b5a-efdd9710be70","html_url":"https://github.com/TheDen/BBC-Crawl","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/TheDen%2FBBC-Crawl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDen%2FBBC-Crawl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDen%2FBBC-Crawl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDen%2FBBC-Crawl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheDen","download_url":"https://codeload.github.com/TheDen/BBC-Crawl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246473279,"owners_count":20783236,"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-25T15:26:24.909Z","updated_at":"2025-03-31T13:16:38.337Z","avatar_url":"https://github.com/TheDen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BBC-Crawl\n\nScrapes articles from www.bbc.com using `scrapy`, and creates an api using `flask` to query the articles for keywords.\n\nLive version: https://bbc-crawl.herokuapp.com/\n\nExample query: https://bbc-crawl.herokuapp.com/api/v1/articles/?query=sydney\n\n\n### Build\nRequirements:\n\n`mongo`: https://docs.mongodb.com/getting-started/shell/installation/\n\n`pip`: `wget https://bootstrap.pypa.io/get-pip.py \u0026\u0026 python get-pip.py`\n\nPip modules (`make install` should also install these)\n```\npip install -r requirements.txt\n```\n\nUbuntu might need certain prereqs:\n```\nsudo apt-get update\nsudo apt-get install python-dev python-pip libxml2-dev libxslt1-dev zlib1g-dev libffi-dev libssl-dev\n```\n\n### Test: \n\nFor a very simple test on localhost: `./flaskr_tests.py`\n\n### Run\n\n`MONGODB_URL` needs to be exported to connect to the mlab db:\n\n`export MONGODB_URL=mongodb://$user:$pass@$db.mlab.com:$port/bbc`\n\nTo run the spider:\n\n`make run-spider`\n\nTo start the server:\n\n`make run-server`\n\nTo import the output file to a remote db:\n\n`db-import`\n\n### API\n\nOnce the server is running, for example a query for the word `sydney` on bbc.com can be made at the enpoint:\n\nhttps://bbc-crawl.herokuapp.com/api/v1/articles/?query=sydney","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheden%2Fbbc-crawl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheden%2Fbbc-crawl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheden%2Fbbc-crawl/lists"}