Tool for proxying programmatic HTTP requests.
Project description
Carmen
------
.. image:: images/carmen_sandiego.jpg
:height: 100px
:width: 120 px
:scale: 50 %
:alt: alternate text
:align: right
.. image:: https://img.shields.io/pypi/v/carmen.svg
:target: https://pypi.python.org/pypi/carmen
:alt: Latest PyPI version
.. image:: https://travis-ci.org/mark-hoffmann/carmen.png
:target: https://travis-ci.org/mark-hoffmann/carmen
:alt: Latest Travis CI build status
.. image:: https://codecov.io/gh/mark-hoffmann/carmen/branch/master/graph/badge.svg
:target: https://codecov.io/gh/mark-hoffmann/carmen
:alt: Coverage
Carmen is a tool for proxying programmatic HTTP requests. It finds a list of free proxy servers and routes your request traffic randomly, making everyone ask the question "Where in the world [is Carmen SanDiego] are my network requests coming from?"
This can be useful for webcrawlers where sites block bots after only a few requests.
**Disclaimer: Please use responsibily. Writing a large scale scraper can have detrimental effects on a websites performance and can cost a company a lot of money. DO NOT use this maliciously. Remember, with great power comes great responsibility. **
Installation
------------
Carmen can easily be downloaded straight from github via the following:
.. code-block:: python
pip install carmenproxy
Usage
-----
This package connects to 'https://www.sslproxies.org/' and finds free available proxies to then cycle through, discarding those that do not initially work.
To use Carmen, simply instantiate the ProxyRotator object, get the available proxies and pass your url into the *make_request* method. You are then returned a Response object.
.. code-block:: python
from carmenproxy import ProxyRotator
pr = ProxyRotator()
pr.get_proxies()
r = pr.make_request('http://url.com')
r.read()
Requirements
^^^^^^^^^^^^
- bs4
- `fake-useragent <https://github.com/hellysmile/fake-useragent>`_
Compatibility
-------------
carmenproxy currently supports Python 3.6
Licence
-------
`MIT <https://github.com/mark-hoffmann/carmenproxy/blob/master/LICENSE.txt>`_
Authors
-------
`carmenproxy` was written by `Mark Hoffmann <markkhoffmann@gmail.com>`_.
------
.. image:: images/carmen_sandiego.jpg
:height: 100px
:width: 120 px
:scale: 50 %
:alt: alternate text
:align: right
.. image:: https://img.shields.io/pypi/v/carmen.svg
:target: https://pypi.python.org/pypi/carmen
:alt: Latest PyPI version
.. image:: https://travis-ci.org/mark-hoffmann/carmen.png
:target: https://travis-ci.org/mark-hoffmann/carmen
:alt: Latest Travis CI build status
.. image:: https://codecov.io/gh/mark-hoffmann/carmen/branch/master/graph/badge.svg
:target: https://codecov.io/gh/mark-hoffmann/carmen
:alt: Coverage
Carmen is a tool for proxying programmatic HTTP requests. It finds a list of free proxy servers and routes your request traffic randomly, making everyone ask the question "Where in the world [is Carmen SanDiego] are my network requests coming from?"
This can be useful for webcrawlers where sites block bots after only a few requests.
**Disclaimer: Please use responsibily. Writing a large scale scraper can have detrimental effects on a websites performance and can cost a company a lot of money. DO NOT use this maliciously. Remember, with great power comes great responsibility. **
Installation
------------
Carmen can easily be downloaded straight from github via the following:
.. code-block:: python
pip install carmenproxy
Usage
-----
This package connects to 'https://www.sslproxies.org/' and finds free available proxies to then cycle through, discarding those that do not initially work.
To use Carmen, simply instantiate the ProxyRotator object, get the available proxies and pass your url into the *make_request* method. You are then returned a Response object.
.. code-block:: python
from carmenproxy import ProxyRotator
pr = ProxyRotator()
pr.get_proxies()
r = pr.make_request('http://url.com')
r.read()
Requirements
^^^^^^^^^^^^
- bs4
- `fake-useragent <https://github.com/hellysmile/fake-useragent>`_
Compatibility
-------------
carmenproxy currently supports Python 3.6
Licence
-------
`MIT <https://github.com/mark-hoffmann/carmenproxy/blob/master/LICENSE.txt>`_
Authors
-------
`carmenproxy` was written by `Mark Hoffmann <markkhoffmann@gmail.com>`_.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
carmenproxy-0.1.0.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file carmenproxy-0.1.0.tar.gz
.
File metadata
- Download URL: carmenproxy-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b8c37252b2415a267f822216b7580cc82a61442c77d9a62b43ae188a3042908 |
|
MD5 | d5048cd7a98d1d222a2c619d0bfd55d7 |
|
BLAKE2b-256 | 34026af291a10fa75a1b05af53ed8476070c8b910e59146642ecba7b4bd03311 |
File details
Details for the file carmenproxy-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: carmenproxy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50123a3833168ddb5bed3a2a52101539a6ac1c8c63713dd20a3174b98e1072ab |
|
MD5 | 07181be123c33f49c36c532c6266399d |
|
BLAKE2b-256 | 6e6f7d1713c76bf0e0292b1e2ebe2fe10900f842d4c4bed040199b507927d469 |