instagrambot / api Goto Github PK
View Code? Open in Web Editor NEWUnofficial Instagram API
Unofficial Instagram API
in api.py line 59 and 56
self.logger.setLevel(logging.DEBUG) #line 56
logging.basicConfig(format='%(asctime)s %(message)s',
filename='instabot.log',
level=logging.INFO #line 59
)
i think line 59 override line 56, is it true and must be fixed?
2023-03-16 22:52:55,438 - INFO - Instabot version: 0.117.0 Started
Traceback (most recent call last):
File "/home/amarnath/Desktop/dev/insta/expo.py", line 7, in
bot.login(username='username', password='password')
File "/home/amarnath/.local/lib/python3.11/site-packages/instabot/bot/bot.py", line 443, in login
if self.api.login(**args) is False:
^^^^^^^^^^^^^^^^^^^^^^
File "/home/amarnath/.local/lib/python3.11/site-packages/instabot/api/api.py", line 240, in login
self.load_uuid_and_cookie(load_cookie=use_cookie, load_uuid=use_uuid)
File "/home/amarnath/.local/lib/python3.11/site-packages/instabot/api/api.py", line 199, in load_uuid_and_cookie
return load_uuid_and_cookie(self, load_uuid=load_uuid, load_cookie=load_cookie)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/amarnath/.local/lib/python3.11/site-packages/instabot/api/api_login.py", line 352, in load_uuid_and_cookie
cookie_username = self.cookie_dict["ds_user"]
~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'ds_user'
when i try to enter into my account every single time, the bot tops because instagram redirects to a challenge page where you should provide a code that was sent to your email account. But a can't introduce such code because the api simply stops, how can a get session to handle this ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.