{"id":24518274,"url":"https://github.com/codefeedr/maven-scraper","last_synced_at":"2025-03-15T11:12:16.512Z","repository":{"id":88361976,"uuid":"194249283","full_name":"codefeedr/maven-scraper","owner":"codefeedr","description":" 📈  Python script to incrementally push Maven releases to Kafka.","archived":false,"fork":false,"pushed_at":"2019-08-08T14:23:29.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T01:41:29.572Z","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/codefeedr.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":"2019-06-28T09:46:38.000Z","updated_at":"2019-08-08T14:23:30.000Z","dependencies_parsed_at":"2023-12-25T09:15:08.237Z","dependency_job_id":null,"html_url":"https://github.com/codefeedr/maven-scraper","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/codefeedr%2Fmaven-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefeedr%2Fmaven-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefeedr%2Fmaven-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefeedr%2Fmaven-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codefeedr","download_url":"https://codeload.github.com/codefeedr/maven-scraper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243719398,"owners_count":20336607,"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":"2025-01-22T01:41:35.881Z","updated_at":"2025-03-15T11:12:16.493Z","avatar_url":"https://github.com/codefeedr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Incremental Maven releases to Kafka\n\n**NOTE: This scraper is not working anymore since maven-repository.com\nis down.** \n\nThis Python script scrapes [maven-repository.com](maven-repository) and\nforwards it to Kafka.  The scraper script requires: `start_date`,\n`kafka_topic`, `bootstrap_servers` and `sleeptime`. It will scrape all\nreleases until `start_date` and push this to the `kafka_topic` running\non `bootstrap_servers`. It will keep repeating after `sleep_time`\nseconds with `start_time == date_of_latest_release`. I.e. it scrapes\nincremental updates on Maven releases.   \n## Prerequisites\nInstall all dependencies:\n```bash\npython3 -m venv venv\n. ./venv/bin/activate\npip install requests BeautifulSoup4 kafka-python\n```\n\n## How To Run\n```bash\nusage: Scrape Maven releases to Kafka. [-h]\n                                       start_date topic bootstrap_servers\n                                       sleep_time\n```\n\nFor example:\n```sh\npython scraper.py '2019-06-24 14:05:50' cf_mvn_releases localhost:29092 60\n```\nThis will scrape up to `2019-06-24 14:05:50` (+ incremental updates)\npushes it to `cf_maven_releases` located at `localhost:29092`.\nIncremental updates are checked every `60` seconds.    \n\n**Note**: `start_date` must be in `%Y-%m-%d %H:%M:%S` format. Multiple\nbootstrap servers should be `,` separated. Sleep time is in _seconds_.\n## Sample data\nData will be send in the following format:\n```json\n{\n  \"groupId\": \"com.g2forge.alexandria\",\n  \"artifactId\": \"alexandria\",\n  \"version\": \"0.0.9\",\n  \"date\": \"2019-06-24 14:42:49\"\n}\n```\n\n## Run in Docker\n```sh\ndocker build -t mvn-scraper .\ndocker run mvn-scraper '2019-06-24 14:05:50' cf_mvn_releases localhost:29092 60\n```\nor [alternatively](https://hub.docker.com/r/wzorgdrager/mvn-scraper)\n\n```sh\ndocker run wzorgdrager/mvn-scraper '2019-06-24 14:05:50' cf_mvn_releases localhost:29092 60\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodefeedr%2Fmaven-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodefeedr%2Fmaven-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodefeedr%2Fmaven-scraper/lists"}