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.

Broken on Python3.8.5 / WSL2 / Ubuntu 20.04

See original GitHub issue
>>> google = Profile('https://www.instagram.com/google/')
>>> google.scrape()

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/emil/.local/lib/python3.8/site-packages/instascrape/core/_static_scraper.py", line 110, in scrape
    self.json_dict = self._get_json_from_source(self.source, headers=headers)
  File "/home/emil/.local/lib/python3.8/site-packages/instascrape/core/_static_scraper.py", line 206, in _get_json_from_source
    json_dict_str = self._json_str_from_soup(self.soup)
  File "/home/emil/.local/lib/python3.8/site-packages/instascrape/core/_static_scraper.py", line 237, in _json_str_from_soup
    json_script = [str(script) for script in soup.find_all("script") if "config" in str(script)][0]
IndexError: list index out of range

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
chris-greeningcommented, Dec 17, 2020

lol when in doubt, reboot! Awesome, thanks for update 😎

1reaction
emilheuneckecommented, Dec 17, 2020

What do you know, reboot fixed it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python3 is broken on Ubuntu 20.04 and I am unable to fix it
I found the error. Somehow /usr/bin/python3.8 lost the executable bit (likely because of me messing up a command; it was a long day)....
Read more >
How To Install Python 3 and Set Up a Programming ...
This tutorial will get your Ubuntu 20.04 server set up with a Python 3 programming environment. Programming on a server has many advantages ......
Read more >
Install Ubuntu on WSL2 and get started with graphical ...
How to enable and install WSL on Windows 10 and Windows 11; How to install and run a simple graphical application that uses...
Read more >
which python3 returns nothing after Ubuntu 20.04 upgrade
which python3 returns nothing (no response) · If I try to install a new Python version with sudo apt install python3.8 I get...
Read more >
How to Install Python 3 on Ubuntu 18.04 or 20.04 - phoenixNAP
Learn how to install Python 3 on Ubuntu 18.04 or 20.04 using APT or from the source code. Follow this step-by-step tutorial and...
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