instapro icon indicating copy to clipboard operation
instapro copied to clipboard

users_by_followers.py doesnt work

Open Nurlan199206 opened this issue 8 years ago • 3 comments

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)

Nurlan199206 avatar Sep 03 '17 10:09 Nurlan199206

try to use python3

ohld avatar Sep 03 '17 17:09 ohld

Can you explain how I can start this bot that running on the "windows", basically I just confused to set my username and password for login. Your aid to explain very useful for me.. Thanks

harisprananda avatar Sep 23 '17 15:09 harisprananda

@harisprananda This bot is for developers only. Go to example folder and look at the code. If you are not a developer, go to instabot repository.

ohld avatar Sep 24 '17 09:09 ohld