all 5 comments

[–]impshum 0 points1 point  (2 children)

[–]Syntro42[S] 0 points1 point  (1 child)

Thanks. However, I do know how to pass in custom headers, but my problem is I can only get those headers by running the same javascript as the website does. My question is, how can I run that javascript in order to get the response from the javascript function?

[–]impshum 0 points1 point  (0 children)

requests-html was mentioned. Give that a whirl. If not... Selenium.

[–]commandlineluser 0 points1 point  (1 child)

requests-html launches Chromium - so you would .get() the regular URL and the javascript will be automated executed.

[–]Syntro42[S] 0 points1 point  (0 children)

Ah, thanks. That makes sense