11# ScrapingAnt API client for Python
2+ [ ![ PyPI version] ( https://badge.fury.io/py/scrapingant-client.svg )] ( https://badge.fury.io/py/scrapingant-client )
3+
24` scrapingant-client ` is the official library to access [ ScrapingAnt API] ( https://docs.scrapingant.com ) from your
3- Python applications. It provides useful features like parameters encoding to improve the ScrapingAnt usage experience.
5+ Python applications. It provides useful features like parameters encoding to improve the ScrapingAnt usage experience.
6+ Requires python 3.6+.
47
58<!-- toc -->
69
@@ -9,6 +12,7 @@ Python applications. It provides useful features like parameters encoding to im
912- [ API Reference] ( #api-reference )
1013- [ Exceptions] ( #exceptions )
1114- [ Examples] ( #examples )
15+ - [ Useful links] ( #useful-links )
1216
1317<!-- tocstop -->
1418
@@ -28,9 +32,7 @@ In order to get API token you'll need to register at [ScrapingAnt Service](https
2832## API Reference
2933All public classes, methods and their parameters can be inspected in this API reference.
3034
31- <a name =" ScrapingAntClient " ></a >
32-
33- #### [ ] ( #ScrapingAntClient ) ScrapingAntClient(token)
35+ #### ScrapingAntClient(token)
3436
3537Main class of this library.
3638
@@ -40,7 +42,7 @@ Main class of this library.
4042
4143* * *
4244
43- #### [ ] ( # ScrapingAntClient+general_request ) ` ScrapingAntClient .general_request(url, cookies, js_snippet, proxy_country, return_text) ` ⇒ Response
45+ #### ScrapingAntClient.general_request
4446
4547https://docs.scrapingant.com/request-response-format#available-parameters
4648
@@ -49,14 +51,14 @@ https://docs.scrapingant.com/request-response-format#available-parameters
4951| url | <code >string</code > | |
5052| cookies | <code >List[ Cookie] </code > | None |
5153| js_snippet | <code >string</code > | None |
52- | proxy_country | <code >ProxyCountry </code > | None |
54+ | proxy_country | <code >str </code > | None |
5355| return_text | <code >boolean</code > | False |
5456
5557** IMPORTANT NOTE:** <code >js_snippet</code > will be encoded to Base64 automatically by the ScrapingAnt client library.
5658
5759* * *
5860
59- #### [ ] ( #Cookie ) Cookie
61+ #### Cookie
6062Class defining cookie. Curently supports only name and value
6163
6264| Param | Type |
@@ -66,21 +68,15 @@ Class defining cookie. Curently supports only name and value
6668
6769* * *
6870
69- #### [ ] ( #ProxyCountry ) ProxyCountry
70-
71- Enum containing all available proxy countries
72-
73- * * *
74-
75- #### [ ] ( #Response ) Response
76- Class defining cookie. Curently supports only name and value
71+ #### Response
72+ Class defining response from API.
7773
7874| Param | Type |
7975| --- | --- |
8076| content | <code >string</code > |
8177| cookies | <code >List[ Cookie] </code > |
8278
83- ## [ ] ( #exceptions ) Exceptions
79+ ## Exceptions
8480
8581` ScrapingantClientException ` is base Exception class, used for all errors.
8682
@@ -131,4 +127,8 @@ result = client.general_request(
131127 js_snippet = customJsSnippet,
132128)
133129print (result.content)
134- ```
130+ ```
131+
132+ ## Useful links
133+ - [ Scrapingant Api doumentation] ( https://docs.scrapingant.com )
134+ - [ Scrapingant Js Client] ( https://github.com/scrapingant/scrapingant-client-js )
0 commit comments