@@ -5,8 +5,9 @@ Python applications. It provides useful features like parameters encoding to im
55<!-- toc -->
66
77- [ Quick Start] ( #quick-start )
8- - [ API key ] ( #api-key )
8+ - [ API token ] ( #api-token )
99- [ API Reference] ( #api-reference )
10+ - [ Exceptions] ( #exceptions )
1011- [ Examples] ( #examples )
1112
1213<!-- tocstop -->
@@ -21,27 +22,25 @@ result = client.general_request('https://example.com')
2122print (result.content)
2223```
2324
24- ## API key
25- In order to get API key you'll need to register at [ ScrapingAnt Service] ( https://app.scrapingant.com )
25+ ## API token
26+ In order to get API token you'll need to register at [ ScrapingAnt Service] ( https://app.scrapingant.com )
2627
2728## API Reference
2829All public classes, methods and their parameters can be inspected in this API reference.
2930
3031<a name =" ScrapingAntClient " ></a >
3132
32- #### [ ] ( #ScrapingAntClient ) ` ScrapingAntClient(token) `
33+ #### [ ] ( #ScrapingAntClient ) ScrapingAntClient(token)
3334
35+ Main class of this library.
3436
35- | Param | Type | Default |
36- | --- | --- | --- |
37- | token | <code >string</code > | |
38-
37+ | Param | Type |
38+ | --- | --- |
39+ | token | <code >string</code > |
3940
4041* * *
4142
42- <a name =" ScrapingAntClient+scrape " ></a >
43-
44- ### [ ] ( #ScrapingAntClient+scrape ) ` ScrapingAntClient.general_request(url, cookies, js_snippet, proxy_country, return_text) ` ⇒ Response
43+ #### [ ] ( #ScrapingAntClient+general_request ) ` ScrapingAntClient.general_request(url, cookies, js_snippet, proxy_country, return_text) ` ⇒ Response
4544
4645https://docs.scrapingant.com/request-response-format#available-parameters
4746
@@ -57,7 +56,7 @@ https://docs.scrapingant.com/request-response-format#available-parameters
5756
5857* * *
5958
60- ### [ ] ( #Cookie ) Cookie
59+ #### [ ] ( #Cookie ) Cookie
6160Class defining cookie. Curently supports only name and value
6261
6362| Param | Type |
@@ -67,25 +66,29 @@ Class defining cookie. Curently supports only name and value
6766
6867* * *
6968
70- ### [ ] ( #ProxyCountry ) ProxyCountry
69+ #### [ ] ( #ProxyCountry ) ProxyCountry
7170
7271Enum containing all available proxy countries
7372
7473* * *
7574
76- ### [ ] ( #Response ) Response
75+ #### [ ] ( #Response ) Response
7776Class defining cookie. Curently supports only name and value
7877
7978| Param | Type |
8079| --- | --- |
8180| content | <code >string</code > |
8281| cookies | <code >List[ Cookie] </code > |
8382
84- * * *
83+ ## [ ] ( #exceptions ) Exceptions
8584
86- ### [ ] ( # ScrapingantClientException) ScrapingantClientException
85+ ` ScrapingantClientException ` is base Exception class, used for all errors.
8786
88- ` ScrapingantClientException ` is base Exception class, used for all errors.
87+ | Exception | Reason |
88+ | --- | --- |
89+ | ScrapingantInvalidTokenException | The API token is wrong or you have exceeded the API calls request limit
90+ | ScrapingantInvalidInputException | Invalid value provided. Please, look into error message for more info |
91+ | ScrapingantInternalException | Something went wrong with the server side code. Try again later or contact ScrapingAnt support |
8992
9093* * *
9194
0 commit comments