{"id":27264213,"url":"https://github.com/achyutem/1mg-scraper","last_synced_at":"2026-05-06T22:01:58.277Z","repository":{"id":287214435,"uuid":"963374947","full_name":"Achyutem/1mg-scraper","owner":"Achyutem","description":"scrapper for 1mg website price data","archived":false,"fork":false,"pushed_at":"2025-04-10T14:22:57.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T15:54:36.709Z","etag":null,"topics":["1mg-scrapper","nodejs","scraping","selenium"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Achyutem.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-04-09T15:27:33.000Z","updated_at":"2025-04-10T14:23:01.000Z","dependencies_parsed_at":"2025-04-10T15:54:42.363Z","dependency_job_id":"bf942fb5-b1f6-46fb-83f3-889099ae5d21","html_url":"https://github.com/Achyutem/1mg-scraper","commit_stats":null,"previous_names":["achyutem/1mg-scraper"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Achyutem%2F1mg-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Achyutem%2F1mg-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Achyutem%2F1mg-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Achyutem%2F1mg-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Achyutem","download_url":"https://codeload.github.com/Achyutem/1mg-scraper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248358548,"owners_count":21090401,"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":["1mg-scrapper","nodejs","scraping","selenium"],"created_at":"2025-04-11T06:51:37.678Z","updated_at":"2026-05-06T22:01:58.219Z","avatar_url":"https://github.com/Achyutem.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧪 1mg Drug Info Scraper (Node.js - Educational Use Only)\n\nThis is a **headless, respectful web scraper** built using **Node.js** and **Selenium WebDriver**.\n\nIt fetches public drug pricing information from [1mg.com](https://www.1mg.com) by searching drugs listed in a local `input.json` file, and stores results into `output.json`.\n\n---\n\n## ⚠️ Disclaimer\n\n\u003e 🛑 This project is created strictly for **educational and non-commercial** use only.\n\n- We **respect the site's `robots.txt`**, and avoid scraping paths explicitly disallowed (like `/search`).\n- This project simulates user interaction in a **controlled, low-impact, respectful** manner.\n- Results are saved locally and not redistributed.\n- If requested by 1mg, we will cease scraping activities immediately.\n\n---\n\n## 🛠 How to Use\n\n### 1. Install Google Chrome\n\nMake sure Google Chrome is installed on your PC.  \nDownload it from: [https://www.google.com/chrome/](https://www.google.com/chrome/)\n\n---\n\n### 2. Install ChromeDriver\n\nChromeDriver must match your installed version of Chrome.\n\n#### Steps:\n\n1. **Check your Chrome version:**\n\n   - Open Chrome and go to: `chrome://settings/help`\n\n2. **Download the matching ChromeDriver:**\n\n   - Go to: [https://chromedriver.chromium.org/downloads](https://chromedriver.chromium.org/downloads)\n   - Download the version that matches your Chrome version.\n   - Extract the ZIP file.\n\n3. **Set up ChromeDriver:**\n\n   - **Windows:** Place `chromedriver.exe` in your project root OR add its location to the System `PATH`.\n   - **macOS/Linux:** Move `chromedriver` to `/usr/local/bin/` using:\n\n     ```bash\n     sudo mv chromedriver /usr/local/bin/\n     ```\n\n4. **Verify installation:**\n\n   ```bash\n   chromedriver --version\n   ```\n\n### 3. Install Dependencies\n\n```bash\nnpm Install\n```\n\n### 4. Give input\n\nadd a input.json file in the root directory\n\n```\n[\n  { \"GenericName\": \"Paracetamol 500mg Tablet\" },\n  { \"GenericName\": \"Aspirin 150mg Tablet\" }\n]\n\n```\n\n### 5. Run the program\n\n```\nnode runscrapper.js\n```\n\n## ⏳ Respectful Scraping Practices\n\n### Includes:\n\n- Headless browser automation\n- Only scraping publicly visible suggestion boxes\n- No crawling disallowed paths (per robots.txt)\n- We encourage users to not exceed 10–20 queries/session, to stay within ethical bounds.\n\n## 📬 Contact\n\nIf you are the owner or representative of 1mg.com and want this project removed or adjusted, please reachout or open an issue. We respect your rights and data.\n\n## 📚 License\n\nThis project is shared under the MIT License, but scraping real-world sites should always be done responsibly and ethically.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fachyutem%2F1mg-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fachyutem%2F1mg-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fachyutem%2F1mg-scraper/lists"}