Skip to main content

Scrape proxy details from popular web pages

Project description

ProxyScraper

Python library for scraping proxies from popular providers.

Basic Usage

Scraping from Free Proxy List

from proxyscraper.scrapers.freeproxylist import FreeProxyListScraper

scraper = FreeProxyListScraper()
proxies = scraper.get_proxy_list()

f = open("/path/to/file.txt", 'w+')
for proxy in proxies:
    out = ', '.join(str(x) for x in [proxy.ip, proxy.port, proxy.code, proxy.country, proxy.anon])
    out += '\n'
    f.write(out)
f.close()

file.txt

177.204.85.203, 80, BR, Brazil, elite proxy
182.16.175.9, 53281, ID, Indonesia, elite proxy
93.190.142.240, 80, NL, Netherlands, anonymous
173.212.202.65, 443, DE, Germany, elite proxy
74.209.243.116, 3128, US, United States, anonymous
...

License

MIT License

Copyright (c) 2018 Ovidijus Okinskas

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

proxyscraper-0.0.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

proxyscraper-0.0.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file proxyscraper-0.0.1.tar.gz.

File metadata

  • Download URL: proxyscraper-0.0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for proxyscraper-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fda4f9cdeb6326564ce8fea01d353b2e3fc0610fdaf7999736932e1201fef2b1
MD5 195cd24ff3e79584e1655e47ca0941e5
BLAKE2b-256 c052aa9e770107ce1b5b351c456120ac8cb8e9afc8e1f96ea95d74a52900a3d6

See more details on using hashes here.

File details

Details for the file proxyscraper-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for proxyscraper-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ba53e330e439e06ba8d1311b1a1b12b0b9846144d7fb6ed0f553f42d81656196
MD5 7381b144716c81b4ba8d3c069a1c7c8b
BLAKE2b-256 fab8aa0686489eeceff3bbf972b37068e4d169a54cf0ed7fc2c1b0b1c014b279

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page