Skip to content

Commit dd7c259

Browse files
committed
style: don't use 'simply', let the reader decide what is simple
1 parent 2579f27 commit dd7c259

37 files changed

+50
-54
lines changed

sources/academy/glossary/concepts/http_headers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ For some websites, you won't need to worry about modifying headers at all, as th
2323

2424
Some websites will require certain default browser headers to work properly, such as **User-Agent** (though, this header is becoming more obsolete, as there are more sophisticated ways to detect and block a suspicious user).
2525

26-
Another example of such a "default" header is **Referer**. Some e-commerce websites might share the same platform, and data is loaded through XMLHttpRequests to that platform, which simply would not know which data to return without knowing which exact website is requesting it.
26+
Another example of such a "default" header is **Referer**. Some e-commerce websites might share the same platform, and data is loaded through XMLHttpRequests to that platform, which would not know which data to return without knowing which exact website is requesting it.
2727

2828
## Custom headers required {#needs-custom-headers}
2929

@@ -44,7 +44,7 @@ You could use Chrome DevTools to inspect request headers, and [Insomnia](../tool
4444
HTTP/1.1 and HTTP/2 headers have several differences. Here are the three key differences that you should be aware of:
4545

4646
1. HTTP/2 headers do not include status messages. They only contain status codes.
47-
2. Certain headers are no longer used in HTTP/2 (such as **Connection** along with a few others related to it like **Keep-Alive**). In HTTP/2, connection-specific headers are prohibited. While some browsers will simply ignore them, Safari and other Webkit-based browsers will outright reject any response that contains them. Easy to do by accident, and a big problem.
47+
2. Certain headers are no longer used in HTTP/2 (such as **Connection** along with a few others related to it like **Keep-Alive**). In HTTP/2, connection-specific headers are prohibited. While some browsers will ignore them, Safari and other Webkit-based browsers will outright reject any response that contains them. Easy to do by accident, and a big problem.
4848
3. While HTTP/1.1 headers are case-insensitive and could be sent by the browsers with capitalized letters (e.g. **Accept-Encoding**, **Cache-Control**, **User-Agent**), HTTP/2 headers must be lower-cased (e.g. **accept-encoding**, **cache-control**, **user-agent**).
4949

5050
> To learn more about the difference between HTTP/1.1 and HTTP/2 headers, check out [this](https://httptoolkit.tech/blog/translating-http-2-into-http-1/) article

sources/academy/glossary/tools/edit_this_cookie.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ At the top of the popup, there is a row of buttons. From left to right, here is
2121

2222
### Delete all cookies
2323

24-
Clicking this button will simply remove all cookies associated with the current domain. For example, if you're logged into your Apify account and delete all the cookies, the website will ask you to log in again.
24+
Clicking this button will remove all cookies associated with the current domain. For example, if you're logged into your Apify account and delete all the cookies, the website will ask you to log in again.
2525

2626
### Reset
2727

sources/academy/platform/deploying_your_code/input_schema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ In the root of our project, we'll create a file named **INPUT_SCHEMA.json** and
2828
}
2929
```
3030

31-
The **title** and **description** simply describe what the input schema is for, and a bit about what the actor itself does.
31+
The **title** and **description** describe what the input schema is for, and a bit about what the actor itself does.
3232

3333
## Properties {#properties}
3434

sources/academy/platform/deploying_your_code/output_schema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Next, copy-paste the following template code into your `actor.json` file.
6969
}
7070
```
7171

72-
To configure the output schema, simply replace the fields in the template with the relevant fields to your actor.
72+
To configure the output schema, replace the fields in the template with the relevant fields to your actor.
7373

7474
For reference, you can use the [Zappos Scraper source code](https://github.com/PerVillalva/zappos-scraper-actor/blob/main/.actor/actor.json) as an example of how the final implementation of the output tab should look in a live actor.
7575

sources/academy/platform/expert_scraping_with_apify/solutions/rotating_proxies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const proxyConfiguration = await Actor.createProxyConfiguration({
106106

107107
**Q: What do you need to do to rotate a proxy (one proxy usually has one IP)? How does this differ for CheerioCrawler and PuppeteerCrawler?**
108108

109-
**A:** Simply making a new request with the proxy endpoint above will automatically rotate it. Sessions can also be used to automatically do this. While proxy rotation is fairly straightforward for Cheerio, it's more complex in Puppeteer, as you have to retire the browser each time a new proxy is rotated in. The SessionPool will automatically retire a browser when a session is retired. Sessions can be manually retired with `session.retire()`.
109+
**A:** Making a new request with the proxy endpoint above will automatically rotate it. Sessions can also be used to automatically do this. While proxy rotation is fairly straightforward for Cheerio, it's more complex in Puppeteer, as you have to retire the browser each time a new proxy is rotated in. The SessionPool will automatically retire a browser when a session is retired. Sessions can be manually retired with `session.retire()`.
110110

111111
**Q: Name a few different ways how a website can prevent you from scraping it.**
112112

sources/academy/platform/get_most_of_actors/actor_readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Aim for sections 1–6 below and try to include at least 300 words. You can move
5757

5858
- Add a video tutorial or GIF from an ideal Actor run.
5959

60-
> Tip: For better user experience, Apify Console automatically renders every YouTube URL as an embedded video player. Simply add a separate line with the URL of your YouTube video.
60+
> Tip: For better user experience, Apify Console automatically renders every YouTube URL as an embedded video player. Add a separate line with the URL of your YouTube video.
6161
6262
- Consider adding a short numbered tutorial as Google will sometimes pick these up as rich snippets. Remember that this might be in search results, so you can repeat the name of the Actor and give a link, e.g.
6363

sources/academy/platform/getting_started/actors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ After you've followed the **Getting started** lesson, you're almost ready to sta
1515

1616
## What's an actor? {#what-is-an-actor}
1717

18-
When you deploy your script to the Apify platform, it is then called an **actor**, which is simply a [serverless microservice](https://www.datadoghq.com/knowledge-center/serverless-architecture/serverless-microservices/#:~:text=Serverless%20microservices%20are%20cloud-based,suited%20for%20microservice-based%20architectures.) that accepts an input and produces an output. Actors can run for a few seconds, hours or even infinitely. An actor can perform anything from a simple action such as filling out a web form or sending an email, to complex operations such as crawling an entire website and removing duplicates from a large dataset.
18+
When you deploy your script to the Apify platform, it is then called an **actor**, which is a [serverless microservice](https://www.datadoghq.com/knowledge-center/serverless-architecture/serverless-microservices/#:~:text=Serverless%20microservices%20are%20cloud-based,suited%20for%20microservice-based%20architectures.) that accepts an input and produces an output. Actors can run for a few seconds, hours or even infinitely. An actor can perform anything from a simple action such as filling out a web form or sending an email, to complex operations such as crawling an entire website and removing duplicates from a large dataset.
1919

2020
Once an actor has been pushed to the Apify platform, they can be shared to the world through the [Apify Store](https://apify.com/store), and even monetized after going public.
2121

sources/academy/platform/getting_started/apify_api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Our **adding-actor** takes in two input values (`num1` and `num2`). When using t
3939

4040
## Parameters {#parameters}
4141

42-
Let's say we want to run our **adding-actor** via API and view its results in CSV format at the end. We'll achieve this by simply passing the **format** parameter with a value of **csv** to change the output format:
42+
Let's say we want to run our **adding-actor** via API and view its results in CSV format at the end. We'll achieve this by passing the **format** parameter with a value of **csv** to change the output format:
4343

4444
```text
4545
https://api.apify.com/v2/acts/YOUR_USERNAME~adding-actor/run-sync-get-dataset-items?token=YOUR_TOKEN_HERE&format=csv

sources/academy/platform/getting_started/creating_actors.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ If you want to use the template locally, you can again use our [Apify CLI](/cli)
6868
6969
When you click on the **Use locally** button, you'll be presented with instructions on how to create an Actor from this template in your local environment.
7070

71-
With the Apify CLI installed, you can simply run the following commands in your terminal:
71+
With the Apify CLI installed, you can run the following commands in your terminal:
7272

7373
```shell
7474
apify create my-actor -t getting_started_node
@@ -153,7 +153,7 @@ And now we are ready to run the Actor. But before we do that, let's give the Act
153153

154154
The input tab is where you can provide the Actor with some meaningful input. In this case, we'll be providing the Actor with a URL to scrape. For now, we'll use the prefilled value of [Apify website](https://apify.com/) (`https://apify.com/`).
155155

156-
You can change the website you want to extract the data from by simply changing the URL in the input field.
156+
You can change the website you want to extract the data from by changing the URL in the input field.
157157

158158
![Input tab](./images/actor-input-tab.png)
159159

@@ -163,7 +163,7 @@ Once you have provided the Actor with some URL you want to extract the data from
163163

164164
![Actor run logs](./images/actor-run.png)
165165

166-
After the Actor finishes, you can preview or download the extracted data simply by clicking on the **Export X results** button.
166+
After the Actor finishes, you can preview or download the extracted data by clicking on the **Export X results** button.
167167

168168
![Export results](./images/actor-run-dataset.png)
169169

sources/academy/platform/running_a_web_server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Now we need to read the following environment variables:
6161

6262
- **APIFY_CONTAINER_PORT** contains a port number where we must start the server.
6363
- **APIFY_CONTAINER_URL** contains a URL under which we can access the container.
64-
- **APIFY_DEFAULT_KEY_VALUE_STORE_ID** is simply the ID of the default key-value store of this actor where we can store screenshots.
64+
- **APIFY_DEFAULT_KEY_VALUE_STORE_ID** is the ID of the default key-value store of this actor where we can store screenshots.
6565

6666
```js
6767
const {

0 commit comments

Comments
 (0)