{"id":18041258,"url":"https://github.com/cblavier/scalper","last_synced_at":"2025-04-05T01:44:27.059Z","repository":{"id":239140535,"uuid":"798660526","full_name":"cblavier/scalper","owner":"cblavier","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-13T07:48:35.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T10:18:03.876Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/cblavier.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":"2024-05-10T08:17:01.000Z","updated_at":"2024-06-30T20:43:59.000Z","dependencies_parsed_at":"2024-05-13T08:58:55.346Z","dependency_job_id":null,"html_url":"https://github.com/cblavier/scalper","commit_stats":null,"previous_names":["cblavier/scalper"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cblavier%2Fscalper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cblavier%2Fscalper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cblavier%2Fscalper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cblavier%2Fscalper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cblavier","download_url":"https://codeload.github.com/cblavier/scalper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276098,"owners_count":20912287,"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-30T15:08:55.498Z","updated_at":"2025-04-05T01:44:27.032Z","avatar_url":"https://github.com/cblavier.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scalper\n\nThis project's purpose is to crawl a collection of shop websites to know if a product is available\nto buy on any of this site.\n\nHow does it work?\n\n- it reads a list of URLs from a Google spreadsheet (column C)\n- for each of these URLs it performs an HTTP GET query and performs a negative search based on the\n  column D from the spreadsheet: if the text is present, then the product is unavailable\n- then it updates the spreadsheet with availability results.\n\n## Installation\n\n### Google Spreadsheet setup\n\n- create a new spreadsheet and list URLs in the col C and the negative search text in col D\n- create a new project in [Google Developper console](https://console.cloud.google.com/)\n- in this project create a service account and download the keys as a JSON file\n- go back on your spreadsheet, click on the Share button, and authorize your service account's email\n  to modify the document\n\n### Environment variables\n\nThe following variables should be available in your shell environment before running scalper:\n\n- `SPREADSHEET_ID` the id of the spreadsheet (present in your spreadsheet URL)\n- `GOOGLE_PRIVATE_KEY` present in the service account keys json file\n- `GOOGLE_CLIENT_EMAIL` present in the service account keys json file\n\n### Install Elixir\n\nDocumentation available [here](https://elixir-lang.org/install.html).\n\n### Install scalper dependencies\n\n```\nmix deps.get\n```\n\n### Run the scalper\n\n```\nmix scalper\n```\n\nor if you want to run it indefintely every 5 mn\n\n```\nmix scalper 5\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcblavier%2Fscalper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcblavier%2Fscalper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcblavier%2Fscalper/lists"}