-
Notifications
You must be signed in to change notification settings - Fork 91
feat: add lesson about using the platform #1424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
a6d74c9
to
2f4638d
Compare
2f4638d
to
ff22747
Compare
05d5344
to
4189c0d
Compare
a308047
to
d44c772
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Was there a discussion about where this content should live before? There is quite a lot of duplication both with https://docs.apify.com/platform and https://docs.apify.com/academy/apify-platform. The approach is JS was to have the scraping tutorial separate from the platform.
I'm not against having the whole thing follow in the Python course (as it can specialize to Python devs needs) but then we will have to maintain duplicate content which tends to be a bit annoying.
@metalwarrior665 The discussion has happened here: #1015 (comment) I don't want a duplicate content, but this is a logical ending of the course:
The lesson is specific to the scraper we're building over the course of the lessons. You could say the same about the previous lesson about Crawlee, where the same content could be covered by Crawlee docs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't we use webp
instead of png
? The images would be about 5x smaller. Changes to the Python code are okay.
I don't mind using webp, but it's just about the size of this repo. The site has the images optimized automatically, at least that's what I remember @B4nan saying somewhere else in the comments. |
The size of the repo is also important, if the difference is 5x let's just go with webp. We use them pretty much exclusively in the crawlee blog posts too for the same reason. |
I’m already putting new images through optimizt every time before commit,
and it has an option to convert to webp. I just wonder if we could have it
as a pre-commit so I don’t have to think about it. But changing extension
breaks the path to the image, so I guess this must be a manual process…
Unless I write myself a Python script to do the magic… 😅
…On Tue 18. 3. 2025 at 17:24, Martin Adámek ***@***.***> wrote:
The size of the repo is also important, if the difference is 5x let's just
go with webp. We use them pretty much exclusively in the crawlee blog posts
too for the same reason.
—
Reply to this email directly, view it on GitHub
<#1424 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACFGMKHOE76ARI2IR25QZ32VBCD7AVCNFSM6AAAAABVUWEMUOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMZTHA4TQNJQG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
[image: B4nan]*B4nan* left a comment (apify/apify-docs#1424)
<#1424 (comment)>
The size of the repo is also important, if the difference is 5x let's just
go with webp. We use them pretty much exclusively in the crawlee blog posts
too for the same reason.
—
Reply to this email directly, view it on GitHub
<#1424 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACFGMKHOE76ARI2IR25QZ32VBCD7AVCNFSM6AAAAABVUWEMUOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMZTHA4TQNJQG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Introducing the final lesson of the course about deploying to the platform. This was quite challenging as with every other sentence I grappled with bugs or behavior, which wasn't really intuitive to me. On my journey I filed these:
apify init
apify-cli#761apify init
toapify actorize
apify-cli#762I explored several approaches, which were dead ends. The lesson now takes an approach where it starts a new project from a template and replaces parts of the template with the original scraper. That completely avoids
apify init
and should be robust with regard to possible future changes, such as migrating touv
, and so on.I find the UI of the Apify console rather confusing and super complex, especially navigation, even as a user who regularly visits the interface for the past year. Also the UI seems to remember my last location or something like that, so every time I open it, it defaults to a different tab. Once it's Input, other time it's Last run, etc.
I'm no UX designer, so I can't help with that, just sharing it here as a feedback and a fact, which I took into account when creating the lesson. The only way to mitigate the confusion which came to my mind was to provide as many screenshots as possible. Also I didn't dare to rely on where the student might land, and I make sure to re-iterate on which screen and in which tab they should be.
The lesson intentionally goes through updating the Actor so that the student knows how to do it and how to push new changes and build and run the Actor again and again. I opted to keep the student using the Input tab as the place from which they start the Actor, even though in reality they could press the Start button from other tabs too. I feel like that way it's less confusing, makes most sense, and they won't get distracted by all the other options that much.
I did my best to structure the lesson so that it leads from stating shortcomings of the current solution to understanding how the platform helps to solve them, because I think that's the most honest way to "sell" the platform.
Let me know what you think!