Coder Social home page Coder Social logo

smartproxy / beautifulsoup Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 3.0 23 KB

BeautifulSoup proxy authentication example for Smartproxy

Home Page: https://smartproxy.com

License: MIT License

Python 100.00%
beautifulsoup smartproxy integration python proxy residential https-proxy http-proxy security anonimous-proxies

beautifulsoup's Introduction

๐Ÿ  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 Beautiful 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/Smartproxy/BeautifulSoup/master/beautifulsoup.py > beautifulsoup.py

curl smartproxy beautifulsoup http/https proxy configuration

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:[email protected]:7000', # Your username, password for proxy authentication, and desired endpoint within punctuation marks ('')
          'https': 'http://username:[email protected]:7000'} 

smartproxy beautifulsoup http/https proxy configuration with username password authentication

Usage

To execute the example, simply run python command:

python beautifulsoup.py

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

Need help?

Email - [email protected]
Live chat 24/7

beautifulsoup's People

Contributors

noahdrucker avatar sebastianvilner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.