Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Errors to get information of multiple files into a single file csv
Post: RE: Errors to get information of multiple files in...

Thank you for your response. The output for me is <_io.TextIOWrapper name='1bateaulecalife.csv' mode='r' encoding='cp1252'> , is necesary to me that encoding is <encoding='utf8'> How can ...
Clnprof General Coding Help 3 2,614 Aug-30-2019, 10:15 AM
    Thread: Errors to get information of multiple files into a single file csv
Post: Errors to get information of multiple files into a...

I'm trying to get information from several files (in this order: 1.bateaulecalife.csv (https://imgur.com/a/831o2s3 - 201 lines), 2.boutary (https://imgur.com/a/aCE9VV9 - 251 lines), 3.epicure (https:/...
Clnprof General Coding Help 3 2,614 Aug-29-2019, 07:35 PM
    Thread: Getting error when I run code more than two times
Post: RE: Getting error when I run code more than two ti...

so What can I do? ... It's so strange because I scraped two sites webs before, information is well and it didn't show me error. I just changed the url and the number of pages.
Clnprof News and Discussions 5 2,426 Aug-26-2019, 12:51 PM
    Thread: Getting error when I run code more than two times
Post: RE: Getting error when I run code more than two ti...

Thank you for your advices. However I share my code if you have another suggestions. with requests.Session() as s: for offset in range(40,290,10): url = f'https://www.tripadvisor....
Clnprof News and Discussions 5 2,426 Aug-26-2019, 12:18 PM
    Thread: Getting error when I run code more than two times
Post: Getting error when I run code more than two times

I'm trying to scrape several web sites with a code. I could scrape 2 sites but now code doesn't work. It show me "NameError: name 'inf_rest_name' is not defined" when I try to get information about ot...
Clnprof News and Discussions 5 2,426 Aug-26-2019, 11:45 AM
    Thread: Code scrape more than one time information
Post: RE: Code scrape more than one time information

I have other question . I need other page who has at least 1000 reviewers. I ran the code at 10h40. Now it doesn't show information scraped and I tried to run again the code and it seems to be blcked....
Clnprof General Coding Help 5 2,538 Aug-26-2019, 09:26 AM
    Thread: Code scrape more than one time information
Post: RE: Code scrape more than one time information

Great! thank you again!
Clnprof General Coding Help 5 2,538 Aug-26-2019, 08:06 AM
    Thread: Code scrape more than one time information
Post: RE: Code scrape more than one time information

Thank you so much! It works perfectly. So it want to say if I want to scrape from 220 to 890 reviews I have to put "for offset in rage(220,890,220), that's right?
Clnprof General Coding Help 5 2,538 Aug-26-2019, 06:52 AM
    Thread: Code scrape more than one time information
Post: Code scrape more than one time information

I'm beginner in python and webscraping. My objectif was to scrape 30 reviews from a tripadvisor restaurant. But when I open the file I have 301 reviews, the 30 reviews are repeated more than five time...
Clnprof General Coding Help 5 2,538 Aug-25-2019, 12:57 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020