question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Scrapping break error

See original GitHub issue

I’m using your script and it seems really promising! But unfortunately I’m having some problems with it, and I hope you can help me.

I’m using Ubuntu, I followed the instructions I found in the README.md file but when I run the script with my internet connection - I’m on optical fiber- or through Amazon Web Services hosting I keep getting the same error:

If you believe this is only caused by slow internet, increase sleep time 'sleep_time_between_post_scroll' in settings.py

Of an Instagram account, the script tells me

Getting first 1116 posts but check 1110 posts only

Then the script goes quite slowly, after an hour or so when it reaches the 42nd post It breaks.

Scrolling profile 42 / 1116
breaking in 2 ...
If you believe this is only caused by slow internet, increase sleep time 'sleep_time_between_post_scroll' in settings.py
Scrolling profile 42 / 1116
breaking in 1 ...
If you believe this is only caused by slow internet, increase sleep time 'sleep_time_between_post_scroll' in settings.py
Scrolling profile 42 / 1116
breaking in 0 ...
If you believe this is only caused by slow internet, increase sleep time 'sleep_time_between_post_scroll' in settings.py
Not getting any more posts, ending scrolling

1 / 42
INFO [2018-11-07 16:49:27] Scrapping Post Link:

In the end, I’ve got only the first 42 posts without comments, but I don’t think my line or AWS, both quite fast, may cause the problem. Could you please tell me what do you think is caused?

During the scrapping I also get this error 10 times then it goes in “exit getting comments” :

click button for loading more
error on clicking - next try

Maybe Instagram changed something?

And sometimes I get this other one:

ERROR something went wrong getting user_commented
ERROR [2018-11-07 16:55:58] ERROR something went wrong getting comment 

Thanks in advance, I really hope you can help me.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
justdvlcommented, Nov 11, 2018

Whoever was changing this program before made some bugs. I have fixed them. It works flawlessly for me now. https://github.com/timgrossmann/instagram-profilecrawl/pull/104

0reactions
davidetroisecommented, Nov 22, 2018

Dear David, Thanks to your intervention now the script don’t stop anymore at 42 posts, but I’m still having the other problems:

I don’t get the comments’ text and neither the correct number of comments of a single post:

click button for loading more error on clicking - next try (tried: 0)comments:26) click button for loading more error on clicking - next try (tried: 1)comments:26)

INFO [2018-11-13 11:25:17] found comments2 ERROR [2018-11-13 11:25:27] ERROR something went wrong getting user_commented ERROR [2018-11-13 11:25:27] ERROR something went wrong getting comment ERROR [2018-11-13 11:25:38] ERROR something went wrong getting user_commented ERROR [2018-11-13 11:25:38] ERROR something went wrong getting comment INFO [2018-11-13 11:25:38] 0 comments.

I tried with two the different accounts, a bigger one https://www.instagram.com/scottecss/, and also https://www.instagram.com/fibrax/ since it has very few post and comments.

I’m attaching to you the JSON file, the commenters list, and the terminal log of the scottecss account.

scottecss.zip

Thanks for your help, D.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why are My Brakes Scrapping or Grinding? Possible FIX
0:00 / 2:51•Watch full video. Live. •. •. Scroll for details. New! Watch ads now so you can enjoy fewer interruptions. Got it....
Read more >
Wheel's scraping noise should be easily fixed - AZCentral
The noise is louder upon having wheel bearings changed to new bearings last week. Why is there a scraping sound against the rotor...
Read more >
Why are my brakes making that noise? - WhichCar
What your car is trying to tell you when it makes a nasty scraping sound ... brake application will not cure the problem...
Read more >
How can I avoid loop break in web scrapping? - Stack Overflow
Hello, I am working on script to scrap image urls from bookdepository. My main problem is that certain books return 404 because they...
Read more >
Fix squeaking and scraping disc brakes - Canyon
Scraping or grinding noises occur if the brake rotors are not correctly centred between the brake pads. This is often because the brake...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found