javascript - How to use splash with requests in python? -
i've written script using python scrape product names webpage. however, intention use "splash" within python script in combination requests library can parse data javascript-heavy website. doesn't work. how rectify script response webpage using splash? in advance.
here script:
import requests ; bs4 import beautifulsoup res = requests.get('http://localhost:8000/render.html', params={'url': 'https://www.footlocker.com/release-dates/', 'wait': 2}) print(res.text)
running script, error i'm having:
<response [404]>
how accomplish process response webpage?
Comments
Post a Comment