Guest User

bs4_request_10

a guest
Mar 28th, 2020
123
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. Traceback (most recent call last):
  3. File "/home/martin/dev/python/daad_studienangebote_url_liste.py", line 25, in <module>
  4. Main(urls)
  5. File "/home/martin/dev/python/daad_studienangebote_url_liste.py", line 20, in Main
  6. df.to_csv("data.csv", index=False)
  7. File "/usr/local/lib/python2.7/dist-packages/pandas/core/generic.py", line 3020, in to_csv
  8. formatter.save()
  9. File "/usr/local/lib/python2.7/dist-packages/pandas/io/formats/csvs.py", line 172, in save
  10. self._save()
  11. File "/usr/local/lib/python2.7/dist-packages/pandas/io/formats/csvs.py", line 288, in _save
  12. self._save_chunk(start_i, end_i)
  13. File "/usr/local/lib/python2.7/dist-packages/pandas/io/formats/csvs.py", line 315, in _save_chunk
  14. self.cols, self.writer)
  15. File "pandas/_libs/writers.pyx", line 75, in pandas._libs.writers.write_csv_rows
  16. UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 39: ordinal not in range(128)
  17. [Finished in 3.134s]
RAW Paste Data