1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "pdfUrl": "https://steelindustries.s3.ap-southeast-1.amazonaws.com/price-lists/SteelIndustriesMay2025Catalogue.pdf",
10 "options": {
11 "pages": [13],
12 "decimalSeparator": ".",
13 "columns": [
14 {
15 "name": "sku",
16 "start": 0.105,
17 },
18 {
19 "name": "description",
20 "start": 0.175,
21 },
22 {
23 "name": "length_available",
24 "start": 0.35,
25 },
26 {
27 "name": "lengths_per_sling",
28 "start": 0.465,
29 },
30 {
31 "name": "cut_category",
32 "start": 0.545,
33 },
34 {
35 "name": "kina_per_tonne",
36 "start": 0.6,
37 },
38 {
39 "name": "price",
40 "start": 0.685,
41 },
42 {
43 "name": "kg_per_metre",
44 "start": 0.77,
45 },
46 {
47 "name": "metres_per_tonne",
48 "start": 0.85,
49 },
50 ],
51 },
52}
53
54
55run = client.actor("excited_idea_uwl/catalogtrace-pdf-rows").call(run_input=run_input)
56
57
58print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
59for item in client.dataset(run.default_dataset_id).iterate_items():
60 print(item)
61
62