#πŸ”’ I am doing some web scraping with requests-html and the following code, but I get errors provided

4 messages Β· Page 1 of 1 (latest)

prime otter
#
from requests_html import HTML, HTMLSession
url = 'https://quotes.toscrape.com/'
session = HTMLSession()
response = session.get(url)
print(response)
response.html.render(sleep=1)
         #^Getting red underline

I am getting the following Errors when executing the file;
[INFO] Starting Chromium download.
Traceback (most recent call last):
File "c:\Users\mabri\OneDrive\Desktop\Programming\WebScraper\index3.py", line 14, in <module>
response.html.render(sleep=1)
File "C:\Users\mabri.virtualenvs\lesson2-DjangoApp-kL2_wS8E\Lib\site-packages\requests_html.py", line 586, in render
self.browser = self.session.browser # Automatically create a event loop and browser
File "C:\Users\mabri.virtualenvs\lesson2-DjangoApp-kL2_wS8E\Lib\site-packages\requests_html.py", line 730, in browser
self._browser = self.loop.run_until_complete(super().browser)
File "C:\Users\mabri\AppData\Local\Programs\Python\Python313\Lib\asyncio\base_events.py", line 721, in run_until_complete
return future.result()
File "C:\Users\mabri.virtualenvs\lesson2-DjangoApp-kL2_wS8E\Lib\site-packages\pyppeteer\chromium_downloader.py", line 82, in download_zip
raise OSError(f'Chromium downloadable not found at {url}: ' f'Received {r.data.decode()}.\n')
OSError: Chromium downloadable not found at https://storage.googleapis.com/chromium-browser-snapshots/Win_x64/1181205/chrome-win.zip:

regal pendantBOT
#

@prime otter

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

regal pendantBOT
#

@prime otter

Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.