You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to run a simple request on one of my own accounts (username and password of another account) like this:
python crawler.py posts_full -u katrikken -n 1
And I get an error:
Traceback (most recent call last):
File "crawler.py", line 83, in
args.username, args.number, args.mode == "posts_full", args.debug
File "crawler.py", line 27, in get_posts_by_user
ins_crawler = InsCrawler(has_screen=debug)
File "C:\Users\kurys\IdeaProjects\myprojects\instagram-crawler-master\inscrawler\crawler.py", line 70, in init
self.login()
File "C:\Users\kurys\IdeaProjects\myprojects\instagram-crawler-master\inscrawler\crawler.py", line 82, in login
u_input.send_keys(secret.username)
AttributeError: 'NoneType' object has no attribute 'send_keys'
Could you please help me out why is it falling?
I renamed secret.py.dist to secret.py and the contents look like this:
Looks like Instagram detects the headless selenium driver and redirects to a page with message "Please wait a few minutes before you try again". If you add the parameter --debug it works as expected because driver is not running on headless mode when --debug parameter is active
Hi, I am trying to run a simple request on one of my own accounts (username and password of another account) like this:
python crawler.py posts_full -u katrikken -n 1
And I get an error:
Traceback (most recent call last):
File "crawler.py", line 83, in
args.username, args.number, args.mode == "posts_full", args.debug
File "crawler.py", line 27, in get_posts_by_user
ins_crawler = InsCrawler(has_screen=debug)
File "C:\Users\kurys\IdeaProjects\myprojects\instagram-crawler-master\inscrawler\crawler.py", line 70, in init
self.login()
File "C:\Users\kurys\IdeaProjects\myprojects\instagram-crawler-master\inscrawler\crawler.py", line 82, in login
u_input.send_keys(secret.username)
AttributeError: 'NoneType' object has no attribute 'send_keys'
Could you please help me out why is it falling?
I renamed secret.py.dist to secret.py and the contents look like this:
----------start of contents-----------
import os
username = os.environ.get('USERNAME', 'katrikken_dancing')
password = os.environ.get('PASSWORD', '******')
-----------end of contents-----------
Thank you!
The text was updated successfully, but these errors were encountered: