carmenproxy-0.1.0
توضیحات
Tool for proxying programmatic HTTP requests.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | carmenproxy-0.1.0 |
| نام | carmenproxy |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Mark Hoffmann |
| ایمیل نویسنده | markkhoffmann@gmail.com |
| آدرس صفحه اصلی | https://github.com/mark-hoffmann/fastteradata |
| آدرس اینترنتی | https://pypi.org/project/carmenproxy/ |
| مجوز | - |
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>`_.
نیازمندی
| مقدار | نام |
|---|---|
| - | beautifulsoup4 |
| - | bs4 |
| - | fake-useragent |
| - | pytest |
نحوه نصب
نصب پکیج whl carmenproxy-0.1.0:
pip install carmenproxy-0.1.0.whl
نصب پکیج tar.gz carmenproxy-0.1.0:
pip install carmenproxy-0.1.0.tar.gz