Skip to main content

Title

With Google Scraper you can scrape search results and extract the contents.

Descrption

  • This google scraper will scrape title, a small description, link etc from the search result.
  • For example if we search gulmarg in google search then it will give us the json data which contains the article name such as gulmarg and the link of the website such as wikipedia etc which can be seen below in json sample data.

JSON sample data

.markdown-preview.markdown-preview {
       pre, code {
            white-space: pre-wrap;
       }
}

{
    "Scraper_People_also_ask": [
        {
            "column_0": "https://en.wikipedia.org \u203a wiki \u203a Gulmarg",
            "column_1": "https://en.wikipedia.org \u203a wiki \u203a Gulmarg",
            "column_6": "Gulmarg - Wikipedia",
            "column_7": "Gulmarg known as Gulmarag in Kashmiri, is a town, a hill station, a popular skiing 
						destination and a notified area committee in the Baramulla district of\u00a0...",
            "column_8": "Country: IndiaDistrict: Baramulla",
            "column_9": "Web results"
        },
        {
            "be_link": "/search?q=Is+Gulmarg+safe+for+tourists%3F&sa=X&ved=2ahUKEwiikamrkYj0AhX4q3IEHWDSCKAQzmd6BAgpEAU",
            "column_8": "Is Gulmarg safe for tourists?Search for: Is Gulmarg safe for tourists?",
            "link_0": "/search?q=Is+Gulmarg+safe+for+tourists%3F&sa=X&ved=2ahUKEwiikamrkYj0AhX4q3IEHWDSCKAQzmd6BAgpEAU",
            "link_1": "/search?q=What+is+the+best+time+to+visit+Gulmarg%3F&sa=X&ved=2ahUKEwiikamrkYj0AhX4q3IEHWDSCKAQzmd6BAgZEAU",
            "link_2": "/search?q=Is+Gulmarg+safe+for+tourists%3F&sa=X&ved=2ahUKEwiikamrkYj0AhX4q3IEHWDSCKAQzmd6BAgpEAU",
            "link_4": "/search?q=Is+Gulmarg+safe+for+tourists%3F&sa=X&ved=2ahUKEwiikamrkYj0AhX4q3IEHWDSCKAQzmd6BAgpEAU"
        },
        {
            "column_0": "https://skigulmarg.com",
            "column_1": "https://skigulmarg.com",
            "column_6": "Skiing India \u2014 Ski Gulmarg, the Best Skiing in India ...",
            "column_7": "Most people come to Gulmarg Ski Resort for the incredible terrain access from the Gulmarg Gondola. It is important to understand that outside the resort\u00a0...",
            "column_8": "\u200eGulmarg Trail Map \u00b7 \u200eAbout Gulmarg \u00b7 \u200eGulmarg Weather \u00b7 \u200eGulmarg in Summer",
            "column_9": "Web results"
        },
        {
            "be_link": "/search?q=gulmarg&tbm=isch&source=iu&ictx=1&fir=zqEz3gJ7p8dZwM%252Cvj6zfiOc_gvR1M%252C_%253BUo87NmXul6Ka9M%252CydjH7Y-Ndmv20M%252C_%253B_ysWTmXGBPSJVM%252Cger8IWrnyAHeLM%252C_%253BLCr_wbxPyfenUM%252CXHlwtSCSfbpw5M%252C_%253BcAPBLInxWlVjiM%252CGIFJkwIC2DSKJM%252C_%253Bquv7pOtIHZ-mmM%252Cx-mml25N3onQuM%252C_%253Br2Luss7397R5kM%252CGy0ekCg1lPK4eM%252C_%253BeeLInKD7Sl1a2M%252Cv3Gon5ykQSzLZM%252C_%253BYbBjG3yl8juNNM%252CuMfgSwGZlKXMsM%252C_%253B48SQ7eHTRLvXQM%252CxGvIrp79BwyUNM%252C_&vet=1&usg=AI4_-kQvto3e6I_SZTpIEyX7nc7rhRXIIQ&sa=X&ved=2ahUKEwiikamrkYj0AhX4q3IEHWDSCKAQ9QF6BAgOEAE#imgrc=zqEz3gJ7p8dZwM",
            "link_0": "/search?q=gulmarg&tbm=isch&source=iu&ictx=1&fir=zqEz3gJ7p8dZwM%252Cvj6zfiOc_gvR1M%252C_%253BUo87NmXul6Ka9M%252CydjH7Y-Ndmv20M%252C_%253B_ysWTmXGBPSJVM%252Cger8IWrnyAHeLM%252C_%253BLCr_wbxPyfenUM%252CXHlwtSCSfbpw5M%252C_%253BcAPBLInxWlVjiM%252CGIFJkwIC2DSKJM%252C_%253Bquv7pOtIHZ-mmM%252Cx-mml25N3onQuM%252C_%253Br2Luss7397R5kM%252CGy0ekCg1lPK4eM%252C_%253BeeLInKD7Sl1a2M%252Cv3Gon5ykQSzLZM%252C_%253BYbBjG3yl8juNNM%252CuMfgSwGZlKXMsM%252C_%253B48SQ7eHTRLvXQM%252CxGvIrp79BwyUNM%252C_&vet=1&usg=AI4_-kQvto3e6I_SZTpIEyX7nc7rhRXIIQ&sa=X&ved=2ahUKEwiikamrkYj0AhX4q3IEHWDSCKAQ9QF6BAgOEAE#imgrc=zqEz3gJ7p8dZwM",
            "link_2": "/search?q=gulmarg&tbm=isch&source=iu&ictx=1&fir=zqEz3gJ7p8dZwM%252Cvj6zfiOc_gvR1M%252C_%253BUo87NmXul6Ka9M%252CydjH7Y-Ndmv20M%252C_%253B_ysWTmXGBPSJVM%252Cger8IWrnyAHeLM%252C_%253BLCr_wbxPyfenUM%252CXHlwtSCSfbpw5M%252C_%253BcAPBLInxWlVjiM%252CGIFJkwIC2DSKJM%252C_%253Bquv7pOtIHZ-mmM%252Cx-mml25N3onQuM%252C_%253Br2Luss7397R5kM%252CGy0ekCg1lPK4eM%252C_%253BeeLInKD7Sl1a2M%252Cv3Gon5ykQSzLZM%252C_%253BYbBjG3yl8juNNM%252CuMfgSwGZlKXMsM%252C_%253B48SQ7eHTRLvXQM%252CxGvIrp79BwyUNM%252C_&vet=1&usg=AI4_-kQvto3e6I_SZTpIEyX7nc7rhRXIIQ&sa=X&ved=2ahUKEwiikamrkYj0AhX4q3IEHWDSCKAQ9QF6BAgOEAE#imgrc=zqEz3gJ7p8dZwM",
            "link_4": "/search?q=gulmarg&tbm=isch&source=iu&ictx=1&fir=zqEz3gJ7p8dZwM%252Cvj6zfiOc_gvR1M%252C_%253BUo87NmXul6Ka9M%252CydjH7Y-Ndmv20M%252C_%253B_ysWTmXGBPSJVM%252Cger8IWrnyAHeLM%252C_%253BLCr_wbxPyfenUM%252CXHlwtSCSfbpw5M%252C_%253BcAPBLInxWlVjiM%252CGIFJkwIC2DSKJM%252C_%253Bquv7pOtIHZ-mmM%252Cx-mml25N3onQuM%252C_%253Br2Luss7397R5kM%252CGy0ekCg1lPK4eM%252C_%253BeeLInKD7Sl1a2M%252Cv3Gon5ykQSzLZM%252C_%253BYbBjG3yl8juNNM%252CuMfgSwGZlKXMsM%252C_%253B48SQ7eHTRLvXQM%252CxGvIrp79BwyUNM%252C_&vet=1&usg=AI4_-kQvto3e6I_SZTpIEyX7nc7rhRXIIQ&sa=X&ved=2ahUKEwiikamrkYj0AhX4q3IEHWDSCKAQ9QF6BAgOEAE#imgrc=zqEz3gJ7p8dZwM"
        },

Run Scraper

from google_scraper_dk import *
link="https://www.google.com/search?q=gulmarg&sxsrf=AOaemvIicejw7VKgxoU621evbbfFgltrHg%3A1633101464052&source=hp&ei=lyZXYdHqPNGTr7wPjMOF4Ag&iflsig=ALs-wAMAAAAAYVc0qCoMYl7y9-lMnkZgA5PnNEovKB-e&gs_ssp=eJzj4tTP1TcwNaksNjBg9GJPL83JTSxKBwA5ugYF&oq=gulmarg&gs_lcp=Cgdnd3Mtd2l6EAEYADILCC4QgAQQsQMQkwIyCAgAEIAEELEDMgUIABCRAjIOCC4QgAQQsQMQxwEQrwEyCAgAEIAEELEDMgsIABCABBCxAxCDATIICAAQgAQQsQMyCwgAEIAEELEDEMkDMgUIABCABDIFCAAQgAQ6BwgjEOoCECc6DQguEMcBEK8BEOoCECc6BAgjECc6CwgAELEDEIMBEJECOhEILhCABBCxAxCDARDHARDRAzoFCC4QgAQ6CAguELEDEIMBOggILhCABBCxAzoICAAQsQMQgwE6CwguEIAEEMcBEK8BUIItWP84YPpKaAFwAHgAgAHUA4gBnQuSAQcyLTMuMS4xmAEAoAEBsAEK&sclient=gws-wiz"
data=run_google_scraper(link)

How it works?

  • It takes URL of google page to scrape the data.
  • We can scrape any search result just by changing URL from above code.
  • It generates the json data which contains the information of the google search result.
  • It gives the title, link , a small description etc in the form of json data.

Examples

Below are some of the examples of URLs using which you can scrape:

  1. Example 1

  2. Example2

Queries/ Feedback

If you have some queries or feedback please contact us at following
Telegram
Email

Metadata

Release files for google-scraper-dk 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for google-scraper-dk 1.0.5
File Size Uploaded Provenance Actions
google_scraper_dk-1.0.5.tar.gz 4.5 kB Without provenance Details for google_scraper_dk-1.0.5.tar.gz

Release files / google_scraper_dk-1.0.5.tar.gz

Download URL google_scraper_dk-1.0.5.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ab6f16536a8f204c1d20c6cf21d13384b430a1718173ea40dae8d48e0f5c44d9
BLAKE2b-256 checksum
How to use checksums
76fa5cf61193bc3d67c75f0b481770cd704274174dd7128cb7aa1fe6af9288bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

Security for google-scraper-dk 1.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page