{"id":21676870,"url":"https://github.com/rasbeetech/web-scraper","last_synced_at":"2026-05-17T22:36:48.243Z","repository":{"id":135282105,"uuid":"338105261","full_name":"RasbeeTech/Web-Scraper","owner":"RasbeeTech","description":"Web scraper via Python","archived":false,"fork":false,"pushed_at":"2021-03-10T20:59:30.000Z","size":7965,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T09:42:37.449Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/RasbeeTech.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":"2021-02-11T17:47:23.000Z","updated_at":"2021-04-14T01:02:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"8c5f24e1-95f9-4775-a3ac-2113f6122714","html_url":"https://github.com/RasbeeTech/Web-Scraper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RasbeeTech/Web-Scraper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RasbeeTech%2FWeb-Scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RasbeeTech%2FWeb-Scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RasbeeTech%2FWeb-Scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RasbeeTech%2FWeb-Scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RasbeeTech","download_url":"https://codeload.github.com/RasbeeTech/Web-Scraper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RasbeeTech%2FWeb-Scraper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33157781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-25T14:16:36.030Z","updated_at":"2026-05-17T22:36:48.223Z","avatar_url":"https://github.com/RasbeeTech.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web-Scraper\n Web scraper via Python and Selenium.\n \n Python version: 3.8.7  \n Selenium version: 3.141.0  \n Tested using: www.webscraper.io/test-sites  \n ### Description\n This webscraper is used to test scraping functionality.  The goal was to scrape all products found in the test urls.  \n ## Modules\n ### main.py\n Use this module to run/test the program.\n ### threader.py\n **Thread**(*self, thread_id, func, args*): initializes thread.  Declare a thread id(thread_id) for identification.  This custom class also passes a function(func) to and and argument(args).  \n **run**(): When Thread().start is called the initiated function(func) will be called with arguement(arg).  \n ### scraper.py\n **Scraper**(*url*): Initializes scraper with url to be scraped.  When Scraper() is declared, a Selenium Chrome webdriver is created, and the content of the url is scraped.  \n **set_chrome_options**(): Defines the chrome options.  They are already set to headless and to disable gpu.  \n **get_content**(): Scrapes all html content from url address.  \n **get_all_tags**(*tag=\"h1\"*): retrieves all elements with a chosen html tag.  Note: Default is \"h1\" tag.  \n **get_items**(*product_container=\"div.thumbnail\"*): Retrives all specified containers.  Note: Default is \"div.thumbnail\".  \n **get_all_products**(*content_container=\"div.thumbnail\"*): gets all products found in url.  Takes the arguement content_container which specifies the container holding each product.  Note: Default is \"div.thumbnail\".  \n **quit**(): terminate the webdriver. Note: Webdrivers should be terminated at the end of each session or they will stay active and occupy device memory.  \n **save_product_csv**(*all_products*): Takes arguement all_products as dictionary object.  Saves all_product into .csv file in the same directory.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frasbeetech%2Fweb-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frasbeetech%2Fweb-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frasbeetech%2Fweb-scraper/lists"}