Skip to content

users_by_followers.py doesnt work #6

Description

@Nurlan199206

when im running script, im getting these errors, whats wrong?

python users_by_followers.py
USERS AVAILABLE: 1
unique users: 100it [07:48,  4.39s/it]Traceback (most recent call last):
  File "users_by_followers.py", line 24, in <module>
    scraper.save_users_from_user(get, iterator, path % username, batchsleep=10)
  File "/home/nurlan/instapro/examples/scrapers/scraper.py", line 101, in save_users_from_user
    dump_data(users, output_filename)
  File "/home/nurlan/instapro/examples/scrapers/scraper.py", line 22, in dump_data
    header=(mode == "w"), index=False)
  File "/usr/local/lib/python2.7/dist-packages/pandas/core/frame.py", line 1403, in to_csv
    formatter.save()
  File "/usr/local/lib/python2.7/dist-packages/pandas/io/formats/format.py", line 1592, in save
    self._save()
  File "/usr/local/lib/python2.7/dist-packages/pandas/io/formats/format.py", line 1693, in _save
    self._save_chunk(start_i, end_i)
  File "/usr/local/lib/python2.7/dist-packages/pandas/io/formats/format.py", line 1719, in _save_chunk
    lib.write_csv_rows(self.data, ix, self.nlevels, self.cols, self.writer)
  File "pandas/_libs/lib.pyx", line 1115, in pandas._libs.lib.write_csv_rows (pandas/_libs/lib.c:20130)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-8: ordinal not in range(128)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions