8000 GitHub - Decodo/BeautifulSoup: BeautifulSoup proxy authentication example for Decodo
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Decodo/BeautifulSoup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Main Repository

Disclaimer

The following example provides you with a basic request using a proxy to a specific website, if you want to learn more about Beautiful Soup, make sure to check their documentation here.

Prerequisites

To run our example script, you are going to need a few Python libraries as well as Python 3.7.x itself with Beautifu 8000 l Soup 4.

Installation

Once you have all the prerequisites ready, enter your project folder or create a new one.

When project directory is setup, you can download our script:

curl https://raw.githubusercontent.com/Decodo/BeautifulSoup/master/beautifulsoup.py > beautifulsoup.py

image

You should now see your project folder populated with beautifulsoup.py file.

Configuration

To start using our example script, all you need to do is to configure the lines below.

Proxy username, password and endpoint:

proxies = {'http': 'http://username:password@gate.decodo.com:7000', # Your username, password for proxy authentication, and desired endpoint within punctuation marks ('')
          'https': 'http://username:password@gate.decodo.com:7000'} 
image

Usage

To execute the example, simply run the Python command:

python beautifulsoup.py

If everything was done correctly, you should be seeing the output as proxy IP:

Need help?

Email - sales@decodo.com
Live chat 24/7

0