GithubHelp home page GithubHelp logo

creativejoe007 / google-leads-scraper Goto Github PK

View Code? Open in Web Editor NEW
64.0 3.0 18.0 3.25 MB

A simple tool that makes it easy for marketers to extract emails and phone numbers (leads) from google search results.

Python 100.00%

google-leads-scraper's Introduction

Google-Leads-Scraper

A simple web scraper that makes it easy for marketers to extract emails and phone numbers (leads) from google search results.

Process

Quite a simple process, you simply enter your search query, file-name to store the data, start and stop to denote number of pages to scrape. The system will load up your query headlessly, meaning you wouldn't even see it while it does its scrapping. This scraper will scrape phone numbers and email addresses including a full screenshot of the webpages and navigate google search pages until it gets to your inputed stop page.

Get Started:

To start you would need to activate the virtual environment

For linux/Mac:

   source env/bin/activate

For Windows (not supported):

.\env\Scripts\activate

  1. python3 --version (supports 3.7 and above)
  2. pip3 install -r requirements.txt
  3. python3 main.py "my query" --start=1 --stop=5 --file="a_file_name_to_save_data"

Note:

A screenshot of websites the scraper visits is taken and stored in the STATIC folder. Check the EXTRACTED folder to view content extracted by this tool (usually in csv format)

Please share and support this libary with your code contributions.

google-leads-scraper's People

Contributors

creativejoe007 avatar darkwebber avatar martinsjoseph avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

google-leads-scraper's Issues

Selenium error: Message: no such element

I get this error while I try to pull data:
Selenium error: Message: no such element: Unable to locate element: {"method":"css selector","selector":"div.tF2Cxc"}
(Session info: headless chrome=103.0.5060.114)
The error repeats exactly the number of pages I input to be scraped.
Do you have any idea what could cause such error? Also, is there any fix for it?

program closes

whenever i try to run the program closes itself and opens the code in vs code
image

I can't get it to run

Tried installing chrome browser as well, still getting error.

I'm on windows machine

Unable to locate element

Hello !

I've a Selenium Error during the scraping process :
`Selenium error: Message: no such element: Unable to locate element: {"method":"css selector","selector":"div.tF2Cxc"}
(Session info: headless chrome=91.0.4472.114)

Selenium error: Message: no such element: Unable to locate element: {"method":"css selector","selector":"span.aCOpRe"}
(Session info: headless chrome=91.0.4472.114)

Selenium error: Message: no such element: Unable to locate element: {"method":"css selector","selector":"span.aCOpRe"}
(Session info: headless chrome=91.0.4472.114)

...
`

Maybe a Google CSS skeleton modification.

ModuleNotFoundError: No module named 'webdriver_manager.utils'

Webdriver manager is already satisfied (Requirement already satisfied: webdriver_manager in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from -r requirements.txt (line 2)) (3.7.0))

however I am receiving the error

from webdriver_manager.utils import ChromeType
ModuleNotFoundError: No module named 'webdriver_manager.utils'

Oops, something's off here

Anyone else getting the error " Oops, something's off here" when running the script? im getting this error regardless of the query or the amount of pages i set to scrape

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.