Apr-05-2021, 01:30 AM
Thank you for your reply, but this is not working either.
I only get one of the two sites 'scraped' when I type response.text
and this text after I enter the last of your code
'Traceback (most recent call last):
File "<pyshell#14>", line 2, in <module>
f.write(response.text.strip())
File "C:\Users\Kim\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2190' in position 677608: character maps to <undefined>'
I only get one of the two sites 'scraped' when I type response.text
and this text after I enter the last of your code
'Traceback (most recent call last):
File "<pyshell#14>", line 2, in <module>
f.write(response.text.strip())
File "C:\Users\Kim\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2190' in position 677608: character maps to <undefined>'