Skip to content

Commit 14d0b97

Browse files
committed
style: remove unnecessary 'just' occurences
1 parent 016a315 commit 14d0b97

File tree

63 files changed

+152
-156
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+152
-156
lines changed

sources/academy/glossary/tools/edit_this_cookie.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Clicking this button will remove all cookies associated with the current domain.
2525

2626
### Reset
2727

28-
Basically just a refresh button.
28+
A refresh button.
2929

3030
### Add a new cookie
3131

sources/academy/glossary/tools/insomnia.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ This will bring up the **Manage cookies** window, where all cached cookies can b
6666

6767
## Postman or Insomnia {#postman-or-insomnia}
6868

69-
The application you choose to use is completely up to your personal preference, and will not affect your development workflow. If viewing timelines of the requests you send is important to you, then you should go with Insomnia; however, if that doesn't matter, just choose the one that has the most intuitive interface for you.
69+
The application you choose to use is completely up to your personal preference, and will not affect your development workflow. If viewing timelines of the requests you send is important to you, then you should go with Insomnia; however, if that doesn't matter, choose the one that has the most intuitive interface for you.

sources/academy/glossary/tools/postman.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ In order to use a proxy, the proxy's server and configuration must be provided i
4343

4444
![Proxy configuration in Postman settings](./images/postman-proxy.png)
4545

46-
After configuring a proxy, the next request sent will attempt to use it. To switch off the proxy, its details don't need to be deleted. The **Add a custom proxy configuration** option in settings just needs to be un-ticked to disable it.
46+
After configuring a proxy, the next request sent will attempt to use it. To switch off the proxy, its details don't need to be deleted. The **Add a custom proxy configuration** option in settings needs to be un-ticked to disable it.
4747

4848
## Managing the cookies cache {#managing-cookies}
4949

sources/academy/platform/deploying_your_code/docker_file.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ import TabItem from '@theme/TabItem';
1616

1717
The **Dockerfile** is a file which gives the Apify platform (or Docker, more specifically) instructions on how to create an environment for your code to run in. Every Actor must have a Dockerfile, as Actors run in Docker containers.
1818

19-
> Actors on the platform are always run in Docker containers; however, they can also be run in local Docker containers. This is not common practice though, as it requires more setup and a deeper understanding of Docker. For testing, it's best to just run the Actor on the local OS (this requires you to have the underlying runtime installed, such as Node.js, Python, Rust, GO, etc).
19+
> Actors on the platform are always run in Docker containers; however, they can also be run in local Docker containers. This is not common practice though, as it requires more setup and a deeper understanding of Docker. For testing, it's best to run the Actor on the local OS (this requires you to have the underlying runtime installed, such as Node.js, Python, Rust, GO, etc).
2020
2121
## Base images {#base-images}
2222

2323
If your project doesn’t already contain a Dockerfile, don’t worry! Apify offers [many base images](/sdk/js/docs/guides/docker-images) that are optimized for building and running Actors on the platform, which can be found [here](https://hub.docker.com/u/apify). When using a language for which Apify doesn't provide a base image, [Docker Hub](https://hub.docker.com/) provides a ton of free Docker images for most use-cases, upon which you can create your own images.
2424

2525
> Tip: You can see all of Apify's Docker images [on DockerHub](https://hub.docker.com/r/apify/).
2626
27-
At the base level, each Docker image contains a base operating system and usually also a programming language runtime (such as Node.js or Python). You can also find images with preinstalled libraries or just install them yourself during the build step.
27+
At the base level, each Docker image contains a base operating system and usually also a programming language runtime (such as Node.js or Python). You can also find images with preinstalled libraries or install them yourself during the build step.
2828

2929
Once you find the base image you need, you can add it as the initial `FROM` statement:
3030

@@ -111,7 +111,7 @@ CMD python3 main.py
111111

112112
## Examples {#examples}
113113

114-
The examples we just showed were for Node.js and Python, however, to drive home the fact that Actors can be written in any language, here are some examples of some Dockerfiles for Actors written in different programming languages:
114+
The examples above show how to deploy Actors written in Node.js or Python, but you can use any language. As an inspiration, here are a few examples for other languages: Go, Rust, Julia.
115115

116116
<Tabs groupId="main">
117117
<TabItem value="GO Actor Dockerfile" label="GO Actor Dockerfile">

sources/academy/platform/deploying_your_code/index.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Deploying your code
3-
description: In this course learn how to take an existing project of yours and deploy it to the Apify platform as an Actor in just a few minutes!
3+
description: In this course learn how to take an existing project of yours and deploy it to the Apify platform as an actor.
44
sidebar_position: 9
55
category: apify platform
66
slug: /deploying-your-code
@@ -11,25 +11,24 @@ import TabItem from '@theme/TabItem';
1111

1212
# Deploying your code to Apify {#deploying}
1313

14-
**In this course learn how to take an existing project of yours and deploy it to the Apify platform as an Actor in just a few minutes!**
14+
**In this course learn how to take an existing project of yours and deploy it to the Apify platform as an Actor.**
1515

1616
---
1717

1818
This section will discuss how to use your newfound knowledge of the Apify platform and Actors from the [**Getting started**](../getting_started/index.md) section to deploy your existing project's code to the Apify platform as an Actor.
19-
20-
Because Actors are basically just chunks of code running in Docker containers, you're able to **_Actorify_** just about anything!
19+
Any program running in a Docker container can become an Apify Actor.
2120

2221
![The deployment workflow](../../images/deployment-workflow.png)
2322

24-
Actors are language agnostic, which means that the language your project is written in does not affect your ability to actorify it.
23+
Apify provides detailed guidance on how to deploy Node.js and Python programs as Actors, but apart from that you're not limited in what programming language you choose for your scraper.
2524

2625
![Supported languages](../../images/supported-languages.jpg)
2726

28-
Though the majority of Actors currently on the platform were written in Node.js, and despite the fact our current preferred languages are JavaScript and Python, there are a few examples of Actors in other languages:
27+
Here are a few examples of Actors in other languages:
2928

30-
- [Actor written in Rust](https://apify.com/lukaskrivka/rust-actor-example)
31-
- [GO Actor](https://apify.com/jirimoravcik/go-actor-example)
32-
- [Actor written with Julia](https://apify.com/jirimoravcik/julia-actor-example)
29+
- [Rust actor](https://apify.com/lukaskrivka/rust-actor-example)
30+
- [Go actor](https://apify.com/jirimoravcik/go-actor-example)
31+
- [Julia actor](https://apify.com/jirimoravcik/julia-actor-example)
3332

3433
## The "actorification" workflow {#workflow}
3534

sources/academy/platform/expert_scraping_with_apify/actors_webhooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Thus far, you've run Actors on the platform and written an Actor of your own, wh
1717

1818
In this course, we'll be working out of the Amazon scraper project from the **Web scraping for beginners** course. If you haven't already built that project, you can do it in three short lessons [here](../../webscraping/web_scraping_for_beginners/challenge/index.md). We've made a few small modifications to the project with the Apify SDK, but 99% of the code is still the same.
1919

20-
Take another look at the files within your Amazon scraper project. You'll notice that there is a **Dockerfile**. Every single Actor has a Dockerfile (the Actor's **Image**) which tells Docker how to spin up a container on the Apify platform which can successfully run the Actor's code. "Apify Actors" is basically just a serverless platform that runs multiple Docker containers. For a deeper understanding of Actor Dockerfiles, refer to the [Apify Actor Dockerfile docs](/sdk/js/docs/guides/docker-images#example-dockerfile).
20+
Take another look at the files within your Amazon scraper project. You'll notice that there is a **Dockerfile**. Every single Actor has a Dockerfile (the Actor's **Image**) which tells Docker how to spin up a container on the Apify platform which can successfully run the Actor's code. "Apify Actors" is a serverless platform that runs multiple Docker containers. For a deeper understanding of Actor Dockerfiles, refer to the [Apify Actor Dockerfile docs](/sdk/js/docs/guides/docker-images#example-dockerfile).
2121

2222
## Webhooks {#webhooks}
2323

sources/academy/platform/expert_scraping_with_apify/migrations_maintaining_state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ slug: /expert-scraping-with-apify/migrations-maintaining-state
1111

1212
---
1313

14-
We already know that Actors are basically just Docker containers that can be run on any server. This means that they can be allocated anywhere there is space available, making them very efficient. Unfortunately, there is one big caveat: Actors move - a lot. When an Actor moves, it is called a **migration**.
14+
We already know that Actors are Docker containers that can be run on any server. This means that they can be allocated anywhere there is space available, making them very efficient. Unfortunately, there is one big caveat: Actors move - a lot. When an Actor moves, it is called a **migration**.
1515

1616
On migration, the process inside of an Actor is completely restarted and everything in its memory is lost, meaning that any values stored within variables or classes are lost.
1717

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const filtered = items.reduce((acc, curr) => {
6868
}, {});
6969
```
7070
71-
The results should be an array, so finally, we can take the map we just created and push an array of all of its values to the Actor's default dataset:
71+
The results should be an array, so we can take the map we just created and push an array of its values to the Actor's default dataset:
7272
7373
```js
7474
await Actor.pushData(Object.values(filtered));

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
@@ -73,7 +73,7 @@ And that's it! We've successfully configured the session pool to match the task'
7373

7474
## Limiting proxy location {#limiting-proxy-location}
7575

76-
The final requirement was to only use proxies from the US. Back in our **ProxyConfiguration**, we just need to add the **countryCode** key and set it to **US**:
76+
The final requirement was to use proxies only from the US. Back in our **ProxyConfiguration**, we need to add the **countryCode** key and set it to **US**:
7777

7878
```js
7979
const proxyConfiguration = await Actor.createProxyConfiguration({

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const crawler = new CheerioCrawler({
8888
8989
## Tracking total saved {#tracking-total-saved}
9090
91-
Now, we'll just increment our **totalSaved** count for every offer added to the dataset.
91+
Now, we'll increment our **totalSaved** count for every offer added to the dataset.
9292
9393
```js
9494
router.addHandler(labels.OFFERS, async ({ $, request }) => {

0 commit comments

Comments
 (0)