{"id":16694809,"url":"https://github.com/hakanu/selenium_scraper","last_synced_at":"2025-03-13T23:43:57.504Z","repository":{"id":20701510,"uuid":"23985208","full_name":"hakanu/selenium_scraper","owner":"hakanu","description":"A python scraper by using selenium which helps to parse the site after being fully loaded (AJAX calls, flash async loads etc).","archived":false,"fork":false,"pushed_at":"2014-09-13T04:35:55.000Z","size":152,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T14:37:40.772Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hakanu.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}},"created_at":"2014-09-13T03:50:52.000Z","updated_at":"2021-07-08T19:52:34.000Z","dependencies_parsed_at":"2022-08-19T19:31:11.590Z","dependency_job_id":null,"html_url":"https://github.com/hakanu/selenium_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/hakanu%2Fselenium_scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakanu%2Fselenium_scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakanu%2Fselenium_scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hakanu%2Fselenium_scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hakanu","download_url":"https://codeload.github.com/hakanu/selenium_scraper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243500771,"owners_count":20300770,"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-12T16:48:22.111Z","updated_at":"2025-03-13T23:43:57.482Z","avatar_url":"https://github.com/hakanu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Selenium Scraper\n================\n\nA python scraper by using selenium which helps to parse the site after being fully loaded (AJAX calls, flash async loads etc).\n\n# Fire up an instance\nNot so easy...\n\n## Prereqs\n* Ubuntu machine (Preferably latest)\n* Not ARM architecture. Can not make this run on my raspberry pi. If somebody has already done, shoot me a mail.\n* sudo easy_install selenium\n* sudo easy_install pyvirtualdisplay\n* sudo apt-get install xvfb\n\nIn my case, Firefox and phantomjs are not capable of showing the flash videos. Chrome is the only successful one.\n\n### Install chrome\n\n* http://www.howopensource.com/2011/10/install-google-chrome-in-ubuntu-11-10-11-04-10-10-10-04/\n* wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -\n* sudo sh -c 'echo \"deb http://dl.google.com/linux/chrome/deb/ stable main\" \u003e\u003e /etc/apt/sources.list.d/google-chrome.list'\n* sudo apt-get update\n* sudo apt-get install google-chrome-stable\n* Make sure chrome is install at /usr/bin/google-chrome\n\n`ls /usr/bin | grep chrome`\n* Get chrome driver from [here](http://chromedriver.storage.googleapis.com/index.html) to be able to use selenium with chrome.\n\n`wget http://chromedriver.storage.googleapis.com/2.10/chromedriver_linux64.zip`\n\n`unzip  chromedriver_linux64.zip`\n\n`python selenium_scraper_server.py`\n\nGo to [localhost:8080/url=%url%\u0026p=%pattern%](http://localhost:8080/url=%url%\u0026p=%pattern%)\n\nEg [localhost:8080/url=hakanu.net\u0026p=hakan](http://localhost:8080/url=hakanu.net\u0026p=hakan)\n\n## Restrictions:\n* Pattern and url must be percent encoded.\nhttp://www.url-encode-decode.com/\n* Pattern should not use +, instead * should be used. Because there is some confusion between url encoding's + (for space) and regexp +.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhakanu%2Fselenium_scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhakanu%2Fselenium_scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhakanu%2Fselenium_scraper/lists"}