mercredi 3 novembre 2021

How to convert the inputs of a document.write from a proxy site. To something i can decode in python

I am trying to scrape a list of proxies from a website. The port data of a proxy on the given website executes a script that contains the following.

document.write(":"+(ZeroFiveSevenFive^FiveSevenOne)+(Eight5EightFour^Seven3Zero))

and in the browser, the string :80 is displayed.

If you run that command in the console opened at a webpage like StackOverflow. It returns

VM36:1 Uncaught ReferenceError: Zero1EightZero is not defined
    at <anonymous>:1:21

What I want is to feed '(ZeroFiveSevenFive^FiveSevenOne)+(Eight5EightFour^Seven3Zero)' string I get from my beautiful soup setup into a python function of some sort and return :80




Aucun commentaire:

Enregistrer un commentaire