Closed d-pizhuk closed 1 year ago
Some websites need js to be enabled to get HTML content. In scrapers.py you use Requests API to get content: But with the first website I tried I got: I used library "playwright" to fix it:
The scrape method takes HTML for this reason, see this FAQ:
https://jamesturk.github.io/scrapeghost/faq/#can-i-use-httpx-or-seleniumplaywright-can-i-customize-the-headers-etc
Some websites need js to be enabled to get HTML content. In scrapers.py you use Requests API to get content: But with the first website I tried I got: I used library "playwright" to fix it: