Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug report . #7

Closed
404Fel opened this issue May 15, 2017 · 9 comments
Closed

bug report . #7

404Fel opened this issue May 15, 2017 · 9 comments
Labels

Comments

@404Fel
Copy link

404Fel commented May 15, 2017

i got this error i must be the most annoying user of your scrpit but i can't figure what i did wrong

Traceback (most recent call last):
File "crawl_profile.py", line 27, in
information = extract_information(browser, username)
File "/Users/Desktop/instagram-profilecrawl/util/extractor.py", line 117, in extract_information
img, tags, likes, comments = extract_post_info(browser)
File "/Users/Desktop/instagram-profilecrawl/util/extractor.py", line 34, in extract_post_info
img = imgs[1].get_attribute('src')
IndexError: list index out of range
thanks for the support

@ToJen
Copy link

ToJen commented May 15, 2017

Funny, I was debugging that yesterday. On line 31, he called
post = browser.find_element_by_class_name('_tjnr4') but I can't find that class. Wondering if it has been changed to something else.

@newbie-dev7
Copy link

have the same issue and i'm not familiar with code at all .

@timgrossmann
Copy link
Collaborator

@404Fel @ToJen @newbie-dev7 That's interesting, the element still exists when I check it out...
Must be a locational thing...

@timgrossmann
Copy link
Collaborator

Found the problem... It does not work with videos anymore.

Would be perfect if you could post the image or link to the post on which the script crashed next time 😉

I'll fix it

@timgrossmann
Copy link
Collaborator

Should be fixed by This commit

Just pull and try again 😉

@newbie-dev7
Copy link

newbie-dev7 commented May 17, 2017

thanks @timgrossmann but there is the new error message

  • Could not get information from post: https://www.instagram.com/p/BTOf3S4AR0j/?taken-by=404hello
    Traceback (most recent call last):
    File "crawl_profile.py", line 29, in
    with open('./profiles/' + username + '.json', 'w') as fp:
    IOError: [Errno 2] No such file or directory: './profiles/404hello.json'

should i just make a depository profiles/404hello.json in the profilcraw ?

@timgrossmann
Copy link
Collaborator

Yes...
I'm sorry, this got lost on the last push...
I'll re-add that

@newbie-dev7
Copy link

@timgrossmann its actually work without any error but the file .json that been created only contain informations about my post nowhere to find my follower list /people i do follow in the .json

@timgrossmann
Copy link
Collaborator

@newbie-dev7 That feature actually isn't present at all 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants