- Command line cheatsheet steps (setup for Node.js project)
- Set up a .gitignore with the memes folder
- Create a folder called "memes"
- Access the website (send a request to the website / "fetching")
- use the second library go to html parser
- Search for the section in the string of HTML that comes back (in the "response") from the website
- Search for the first 10 image sources in the section Two options
- One option: .jpg - this is in the HTML code of the website
- Another option: <img
- Get the src URL strings from the img
- Add the first 10 image URL strings to an array
- Loop over the first 10 image URLs and:
- Create a file (named correctly) in the memes folder (eg. 01.jpg, 02.jpg, etc)
- Access the image URL
- In this file, store the image data that comes back (in the "response") from the website
- Test to make sure the program can run multiple times without failing create the array
-
Notifications
You must be signed in to change notification settings - Fork 0
majak76/node-meme-scraper
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published