samedi 31 août 2019

Python web scraping, getting a FileNotFound error

I am trying to run the following script to get some book data from goodreads.com starting with just a list of titles. I have had this code working recently but am now getting the following error:

Traceback (most recent call last):
  File "/home/l/gDrive/AudioBookReviews/WebScraping/GoodreadsScraper.py", line 66, in <module>
    create_csv_file()
  File "/home/l/gDrive/AudioBookReviews/WebScraping/GoodreadsScraper.py", line 29, in create_csv_file
    with open('/home/l/Downloads/WebScraping/GoodReadsBooksNew.csv', 'w') as csv_file:
FileNotFoundError: [Errno 2] No such file or directory: '/home/l/Downloads/WebScraping/GoodReadsBooksNew.csv'

Here is the Code: https://pastebin.com/Y5NQiVEp




Aucun commentaire:

Enregistrer un commentaire