scrapy-proxy-headers 0.1.1__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: scrapy-proxy-headers
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Add custom proxy headers to HTTPS requests in Scrapy
5
- Author-email: ProxyMesh <info@proxymesh.com>
5
+ Author-email: ProxyMesh <support@proxymesh.com>
6
6
  Project-URL: Homepage, https://github.com/proxymesh/scrapy-proxy-headers
7
7
  Project-URL: Changelog, https://github.com/proxymesh/scrapy-proxy-headers/commits/main/
8
8
  Classifier: Programming Language :: Python :: 3
@@ -19,7 +19,7 @@ The `scrapy-proxy-headers` package is designed for adding proxy headers to HTTPS
19
19
 
20
20
  In normal usage, custom headers put in `request.headers` cannot be read by a proxy when you make a HTTPS request, because the headers are encrypted and passed through the proxy tunnel, along with the rest of the request body. You can read more about this at [Proxy Server Requests over HTTPS](https://docs.proxymesh.com/article/145-proxy-server-requests-over-https).
21
21
 
22
- Because Scrapy does not have a good way to pass custom headers to a proxy when you make HTTPS requests, we at ProxyMesh made this extension to support our customers that use Scrapy and want to use custom headers to control our proxy behavior. But this extension can work for any custom headers through a proxy.
22
+ Because Scrapy does not have a good way to pass custom headers to a proxy when you make HTTPS requests, we at [ProxyMesh](https://proxymesh.com) made this extension to support our customers that use Scrapy and want to use custom headers to control our proxy behavior. But this extension can work for any custom headers through a proxy.
23
23
 
24
24
  To use this extension, do the following:
25
25
 
@@ -2,7 +2,7 @@ The `scrapy-proxy-headers` package is designed for adding proxy headers to HTTPS
2
2
 
3
3
  In normal usage, custom headers put in `request.headers` cannot be read by a proxy when you make a HTTPS request, because the headers are encrypted and passed through the proxy tunnel, along with the rest of the request body. You can read more about this at [Proxy Server Requests over HTTPS](https://docs.proxymesh.com/article/145-proxy-server-requests-over-https).
4
4
 
5
- Because Scrapy does not have a good way to pass custom headers to a proxy when you make HTTPS requests, we at ProxyMesh made this extension to support our customers that use Scrapy and want to use custom headers to control our proxy behavior. But this extension can work for any custom headers through a proxy.
5
+ Because Scrapy does not have a good way to pass custom headers to a proxy when you make HTTPS requests, we at [ProxyMesh](https://proxymesh.com) made this extension to support our customers that use Scrapy and want to use custom headers to control our proxy behavior. But this extension can work for any custom headers through a proxy.
6
6
 
7
7
  To use this extension, do the following:
8
8
 
@@ -1,8 +1,12 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
1
5
  [project]
2
6
  name = "scrapy-proxy-headers"
3
- version = "0.1.1"
7
+ version = "0.1.2"
4
8
  authors = [
5
- { name="ProxyMesh", email="info@proxymesh.com" },
9
+ { name="ProxyMesh", email="support@proxymesh.com" },
6
10
  ]
7
11
  description = "Add custom proxy headers to HTTPS requests in Scrapy"
8
12
  readme = "README.md"
@@ -0,0 +1 @@
1
+ from .download_handler import HTTP11ProxyDownloadHandler
@@ -1,5 +1,3 @@
1
- # TODO: handle response headers
2
-
3
1
  from scrapy.core.downloader.handlers.http11 import TunnelingAgent, TunnelingTCP4ClientEndpoint, ScrapyAgent, HTTP11DownloadHandler
4
2
  from scrapy.core.downloader.webclient import _parse
5
3
  from scrapy.utils.python import to_bytes
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: scrapy-proxy-headers
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Add custom proxy headers to HTTPS requests in Scrapy
5
- Author-email: ProxyMesh <info@proxymesh.com>
5
+ Author-email: ProxyMesh <support@proxymesh.com>
6
6
  Project-URL: Homepage, https://github.com/proxymesh/scrapy-proxy-headers
7
7
  Project-URL: Changelog, https://github.com/proxymesh/scrapy-proxy-headers/commits/main/
8
8
  Classifier: Programming Language :: Python :: 3
@@ -19,7 +19,7 @@ The `scrapy-proxy-headers` package is designed for adding proxy headers to HTTPS
19
19
 
20
20
  In normal usage, custom headers put in `request.headers` cannot be read by a proxy when you make a HTTPS request, because the headers are encrypted and passed through the proxy tunnel, along with the rest of the request body. You can read more about this at [Proxy Server Requests over HTTPS](https://docs.proxymesh.com/article/145-proxy-server-requests-over-https).
21
21
 
22
- Because Scrapy does not have a good way to pass custom headers to a proxy when you make HTTPS requests, we at ProxyMesh made this extension to support our customers that use Scrapy and want to use custom headers to control our proxy behavior. But this extension can work for any custom headers through a proxy.
22
+ Because Scrapy does not have a good way to pass custom headers to a proxy when you make HTTPS requests, we at [ProxyMesh](https://proxymesh.com) made this extension to support our customers that use Scrapy and want to use custom headers to control our proxy behavior. But this extension can work for any custom headers through a proxy.
23
23
 
24
24
  To use this extension, do the following:
25
25
 
@@ -1,13 +0,0 @@
1
- """
2
- To use this, in your settings, do the following:
3
-
4
- DOWNLOAD_HANDLERS = {
5
- "https": "scrapy_proxy_headers.HTTP11ProxyDownloadHandler"
6
- }
7
-
8
- Then when you make a request with a custom proxy header, instead of using request.headers, use request.meta["proxy_headers"] like this:
9
-
10
- request.meta["proxy_headers"] = {"X-ProxyMesh-Country": "US"}
11
- """
12
-
13
- from .download_handler import HTTP11ProxyDownloadHandler