Google Sheets Database with Python Web Scraping

Sdílet
Vložit
  • čas přidán 8. 09. 2020
  • We can use Google Sheets as a database for our Python Web Scrapers. In this video tutorial I will show you how to add new rows under each other to a Google Sheet from your Python script.
    -------------------------------------
    twitter / jhnwr
    code editor code.visualstudio.com/
    WSL2 (linux on windows) docs.microsoft.com/en-us/wind...
    -------------------------------------
    Disclaimer: These are affiliate links and as an Amazon Associate I earn from qualifying purchases
    mouse amzn.to/2SH1ssK
    27" monitor amzn.to/2GAH4r9
    24" monitor (vertical) amzn.to/3jIFamt
    dual monitor arm amzn.to/3lyFS6s
    microphone amzn.to/36TbaAW
    mic arm amzn.to/33NJI5v
    audio interface amzn.to/2FlnfU0
    keyboard amzn.to/2SKrjQA
    lights amzn.to/2GN7INg
    webcam amzn.to/2SJHopS
    camera amzn.to/3iVIJol
    gfx card amzn.to/2SKYraW
    ssd amzn.to/3lAjMAy
  • Věda a technologie

Komentáře • 63

  • @InfinitycgIN
    @InfinitycgIN Před 2 lety +4

    Thanks a ton, your video helped me in reducing the code by almost 60%, I am a non programmer and was writing my script just by googling and CZcams. A massive thanks for the easy-going and straightforwardly understandable video with no clutter

  • @alexlytle089
    @alexlytle089 Před 3 lety +15

    dude thank you so much!! I get excited everytime you post a new video. Really high quality stuff mate.
    I ran into this error "ImportError: No module named gspread". But i fixed it by running this into my python interpreter
    import pip
    pip.main(["install", "gspread"])
    just in this happens to somebody else

  • @zjm89
    @zjm89 Před 3 lety +4

    This came at the perfect time. Looking forward to watching more of your videos

  • @omarcedric9193
    @omarcedric9193 Před 3 lety +1

    Straightforward and concise. Thank you for this.

  • @louisgirardin2030
    @louisgirardin2030 Před 3 lety +4

    Great lesson with the right content and easy to follow ! Thx a ton.

  • @AbdulMalik-rt3vx
    @AbdulMalik-rt3vx Před rokem +2

    Very useful and real life example! Thank you John!

  • @jamesmarx3105
    @jamesmarx3105 Před 3 lety +1

    I find it really easy to learn from you. Thanks for making content!

  • @stuarthoughton3517
    @stuarthoughton3517 Před 3 lety +2

    Excellent, John!! Really helpful. Cheers

  • @pedrofilhojp1
    @pedrofilhojp1 Před rokem

    Obrigado pelo seu video. Ajudou muito na automatização de minha planilha. Show. Parabéns.

  • @geriivagyok
    @geriivagyok Před 2 lety +1

    This is fantastic! Thank you!

  • @EUU100
    @EUU100 Před 3 lety +2

    Perfect, thank you for your effort and time Mr Rooney

  • @ayencoscolfield3312
    @ayencoscolfield3312 Před 3 lety +2

    Speechless as usual one word for you pal ,awesome!!!

  • @gitgosc7075
    @gitgosc7075 Před rokem +1

    something new for me, thanks a lot, great channel!

  • @justash123
    @justash123 Před 2 lety +1

    SIR THIS IS THE BEST TUTORIAL EVER!
    Im hosting a website using heroku but my manual database keep clearing after a few hours, but this is the perfect solution for that, tysm!

  • @connerbaker5435
    @connerbaker5435 Před 3 lety +2

    Great stuff. Thank you sm

  • @datochikhla8572
    @datochikhla8572 Před 2 lety +1

    Thank you very much for helping me

  • @ahmadcooper40
    @ahmadcooper40 Před 3 lety +4

    Hey John, thanks for your videos, they're easy to understand and follow. After watching your Google News scraper video, and this video on how to scrape to Google Sheets, I'm wondering if you could make another video on "How to Scrape Google News to Google Sheets". I tried figuring it out myself but I only managed to get the first news article. Additionally, if its possible, a video on "How to append scrape data (i.e. Google News) to Excel"), or to create a new Sheet within an existing doc. If you could do any of those that would be amazing.

  • @severtone263
    @severtone263 Před rokem +1

    Thx mate! Great vid

  • @LeopoldoAvalos
    @LeopoldoAvalos Před rokem +1

    Thank you John!

  • @snapesrds5766
    @snapesrds5766 Před 10 měsíci +1

    Thanks You from deepest of my heart. ❤

  • @aysenurakdass
    @aysenurakdass Před 2 lety +1

    Your video has been very helpful. Thank you so much.

  • @michaelkurz5878
    @michaelkurz5878 Před rokem

    great video. keep going!

  • @expat2010
    @expat2010 Před 3 lety +2

    Very nice.

  • @yuliyakunitskaya7817
    @yuliyakunitskaya7817 Před 3 lety +2

    Thanks!

  • @zanew2493
    @zanew2493 Před rokem +1

    goated video

  • @gauravpainuly1800
    @gauravpainuly1800 Před 2 lety +1

    very interesting

  • @nicolas____
    @nicolas____ Před 11 měsíci +1

    i fuckin love you man, thank you!

  • @wkowalski
    @wkowalski Před 3 lety +3

    By any chance you think you could do a video about automating scrapers with cronjobs, and maybe even using launchd on Mac OS if you happen to know anything about that? Really glad I found your videos... They're really well done and very helpful.

    • @JohnWatsonRooney
      @JohnWatsonRooney  Před 3 lety +1

      Sure I have a video about running scrapers in the cloud and cronjobs planned

    • @wkowalski
      @wkowalski Před 3 lety

      @@JohnWatsonRooney Awesome! Can't wait.

  • @marcogelsomini7655
    @marcogelsomini7655 Před 2 lety

    Nice video thx! Is possible to automatic update the information scraped from a website? or you have to run the code ?

  • @tiroles
    @tiroles Před 2 lety

    That is fantastic! Thanks for the video! I'm trying to find a way to automate the update of the sheet. I know google sheets have that, but the way it scraps are too basic. If there is a pyton way it would be wonderful!

  • @michaelkurz5878
    @michaelkurz5878 Před rokem

    great actor

  • @ianpropst-campbell6028

    Excellent tutorial! You mentioned something cron jobs. Do you have any tutorials about how to set those up?

  • @prostituka
    @prostituka Před 3 lety +2

    Great video. Any chance to do a tutorial on how to create a trigger when price change?

  • @gabefife951
    @gabefife951 Před rokem +1

    Thank you so much, I do get an error that says I need to requests more quota but it doesn’t really effect it bc I still get what I want with it.

  • @business5707
    @business5707 Před 3 lety +1

    Hello John, I got this error copying from your video "list indices must be integers or slices, not str" Do you know why?

  • @renatoacevedosilva9423

    Just amazing, did you know how to extend the matrix with a For loop?

  • @wangdanny178
    @wangdanny178 Před 2 lety

    btw john is it possible to make the product['date'] as date object to append in google sheet?

  • @DuckkkMr
    @DuckkkMr Před 3 lety +3

    Thanks that is very helpful. I am looking to know how to import several row with several values (i.e I have a .csv with 400 rows and I want to upload these 400 rows into GSheet automatically) ? Right now it only insert the latest value of my .csv
    Thanks !

    • @EUU100
      @EUU100 Před 3 lety

      did you find out?

  • @peepi98
    @peepi98 Před 2 lety

    hi! where did yo get the info? i was surfing throgh the official gspread webside (i think) and i didnt see the append_row command (for example)

  • @MrShivahari
    @MrShivahari Před 2 lety

    Hey can we use the saved data in google sheets to render into django page through pandas liabrary

  • @SkySesshomaru
    @SkySesshomaru Před 2 lety +1

    Wow

  • @wangdanny178
    @wangdanny178 Před 2 lety +1

    Hey john, do you need to have to import 'oauth2client.service_account'? my google sheet is not updated as the script tells

    • @JohnWatsonRooney
      @JohnWatsonRooney  Před 2 lety +1

      Hey good question! It’s been a while since I’ve done this but as far as I remember that wasnt needed as the g sheets import handled it all.

  • @clintluna6884
    @clintluna6884 Před 19 dny

    Does this auto run each day, or does that have to be done manually? Thanks!

  • @pablo3830
    @pablo3830 Před 3 lety +2

    what do I do if FileNotFoundError: [Errno 2] No such file or directory: 'hey.json'
    I followed every step

  • @pablo3830
    @pablo3830 Před 3 lety +1

    Can you make a video about google Sheets web scraping with ezsheets module

  • @markwasfy9230
    @markwasfy9230 Před 6 měsíci

    Guys Don't forget to enable google drive api to not get any errors

  • @tonyvillena1293
    @tonyvillena1293 Před rokem

    What if I wanted to create a spreadsheet from spread

  • @AnNguyen-lm5dm
    @AnNguyen-lm5dm Před rokem +1

    Hello, how can I get the example code sir?

    • @JohnWatsonRooney
      @JohnWatsonRooney  Před rokem

      hey sorry this is old now i don't think i have this specific code anymore

  • @muhammetayd4172
    @muhammetayd4172 Před 2 lety

    it doesnt work for me. I cant update the cell. Did i a mistake?

  • @kunalgupta2900
    @kunalgupta2900 Před 3 lety +1

    Can we Automate Google sheets with Python? I mean, If we want to automate reports and send Email to the management, can we do that? If yes, how? Can you please help with the same?

  • @user-xo1ow5to2n
    @user-xo1ow5to2n Před rokem

    More haste less speed on the typing sir.

  • @sylcexport9642
    @sylcexport9642 Před měsícem +1

    Hi John it seems google api change the way we write things up, here's what I had to write to get it to work: sh.update([['third']], 'A1')