1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "startUrls": [
9 {
10 "url": "https://developer.uspto.gov/api-catalog",
11 "sourceId": "USPTO-API-CATALOG",
12 "userData": { "sourceId": "USPTO-API-CATALOG" },
13 },
14 {
15 "url": "https://bulkdata.uspto.gov/",
16 "sourceId": "USPTO-BULK-DATA",
17 "userData": { "sourceId": "USPTO-BULK-DATA" },
18 },
19 {
20 "url": "https://patentsview.org/apis/api-endpoints",
21 "sourceId": "PATENTSVIEW-API",
22 "userData": { "sourceId": "PATENTSVIEW-API" },
23 },
24 ] }
25
26
27run = client.actor("zentrafoundry/uspto-trademark-patent-watcher").call(run_input=run_input)
28
29
30print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
31for item in client.dataset(run["defaultDatasetId"]).iterate_items():
32 print(item)
33
34