File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ # Outscraper Platform UI
2+
3+ Allows using Outscraper Platform via [ Outscraper API] (https://app.outscraper.com/api-docs#tag/Outscraper-Platform-UI
4+
5+ ## Installation
6+
7+ Python 3+
8+ ``` bash
9+ pip install outscraper
10+ ```
11+
12+ [ Link to the Python package page] ( https://pypi.org/project/outscraper/ )
13+
14+ ## Initialization
15+ ``` python
16+ from outscraper import ApiClient
17+
18+ client = ApiClient(api_key = ' SECRET_API_KEY' )
19+ ```
20+ [ Link to the profile page to create the API key] ( https://app.outscraper.com/profile )
21+
22+ ## Get all UI tasks
23+
24+ ``` python
25+ all_tasks = []
26+
27+ has_more = True
28+ last_id = None
29+
30+ while has_more:
31+ tasks, has_more = api_client.get_tasks(last_id = last_id, page_size = 20 )
32+
33+ if not tasks:
34+ break
35+
36+ last_id = tasks[- 1 ][' id' ]
37+ all_tasks.extend(tasks)
38+ ```
You can’t perform that action at this time.
0 commit comments