You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sources/academy/platform/building_actors_with_ai/01_chatting.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ unlisted: true
9
9
10
10
---
11
11
12
-
Even without knowing how to code, you can open [ChatGPT](https://chatgpt.com/), type the following, and you'll have a scraper ready:
12
+
Want to get data about prices on [this Sales page](https://warehouse-theme-metal.myshopify.com/collections/sales)? Even without knowing how to code, you can open [ChatGPT](https://chatgpt.com/), type the following, and you'll have a scraper ready:
13
13
14
14
```text
15
15
Create a scraper in JavaScript which downloads
@@ -36,15 +36,15 @@ Some are technical challenges:
36
36
To address all of these, we'll use the [Apify](https://apify.com/) platform, where it's possible to deploy any program, as far as it's structured as a so-called Actor. We'll thank ourselves later if we start our program as an Actor from the very beginning.
37
37
<!-- TODO END rewrite this paragraph, it's really bad -->
38
38
39
-
First, we'll use a few commands to setup an Actor template, and then we'll prompt ChatGPT to generate the code necessary for scraping that [Sales page](https://warehouse-theme-metal.myshopify.com/collections/sales) from the prompt above.
39
+
First, we'll use a few commands to setup an Actor template, and then we'll prompt ChatGPT to generate the code necessary for scraping that Sales page.
40
40
41
41
:::info The Warehouse store
42
42
43
43
In this course, we'll scrape a real e-commerce site instead of artificial playgrounds or sandboxes. Shopify, a major e-commerce platform, has a demo store at [warehouse-theme-metal.myshopify.com](https://warehouse-theme-metal.myshopify.com/). It strikes a good balance between being realistic and stable enough for a tutorial.
44
44
45
45
:::
46
46
47
-
## Creating an Actor
47
+
## Installing Apify CLI
48
48
49
49
First, let's head to the [Installation page](https://docs.apify.com/cli/docs/installation) of the Apify CLI, a command line program, which works as a remote control for the Apiary platform.
50
50
@@ -62,14 +62,20 @@ You are ready if it prints something like the following:
62
62
apify-cli/0.0.0 (1a2b3c4) running on ... with node-0.0.0, installed via ...
63
63
```
64
64
65
+
## Setting up an Actor template
66
+
65
67
<!--
66
68
TODO Now let's setup the Actor… Find a suitable folder and run `apify create`
67
69
-->
68
70
69
71
:::note Course under construction
70
-
71
72
This section hasn't been written yet. Come later, please!
73
+
:::
72
74
75
+
## Scraping products
76
+
77
+
:::note Course under construction
78
+
This section hasn't been written yet. Come later, please!
73
79
:::
74
80
75
81
## Running code
@@ -79,9 +85,7 @@ Save it to the template, setup Node/npm environment, run it, get results. If the
79
85
-->
80
86
81
87
:::note Course under construction
82
-
83
88
This section hasn't been written yet. Come later, please!
84
-
85
89
:::
86
90
87
91
#### Scraping stock units
@@ -93,7 +97,5 @@ Teaser: In one of the next lessons we'll get rid of copying and pasting and upda
93
97
-->
94
98
95
99
:::note Course under construction
96
-
97
100
This section hasn't been written yet. Come later, please!
0 commit comments