create-meme-scraper's People
create-meme-scraper's Issues
Memes folder name
The memes folder name should be memes
, not Pix
.
Not a huge deal, but:
- small details like this can be important in projects
- uppercase letters in file and folder names can cause problems (especially cross platform - between Linux and Windows, for example)
Unused Variables / Variables Declared with Var
Some variables can be declared with const
instead of var
:
Lines 17 to 19 in dff4dd2
Lines 24 to 26 in dff4dd2
Using const
instead will prevent some unusual bugs and prevent the variables from being accidentally reassigned.
Also, some of those variables are unused (not used anywhere else), so probably don't even need to be assigned:
You can see the unused variables because their colors are not as bright as the other ones.
๐ฅ Doesn't get the first 10 images
When the program is run, it doesn't download the first 10 images - it downloads image 88 to 95.
Variable Naming / Reuse
The naming of some of the variables could be improved to better communicate to others what they actually are - eg. body1
, body2
, itm
:
Line 36 in dff4dd2
Line 40 in dff4dd2
Another "best practices" thing is to not reuse / reassign the value of parameters (not a huge deal, but some teams may not allow this):
Lines 41 to 46 in dff4dd2
Nice use of a function!
Nice use of a function to separate out some of the code:
Lines 23 to 29 in dff4dd2
Fails when Pix folder doesn't exist
Images saved to Git / GitHub
Using your .gitignore
file you can ignore the images folder so that it doesn't show up on GitHub.
In order to do this, you can try googling "gitignore folder".
Otherwise they will be on GitHub and will be downloaded when people download your program:
To ignore the things that are downloaded by the program is often considered best practice.
Extra debugging output / show progress in output
When the program is run, extra output appears in the terminal (see screenshots below). It would be nice to have the output free of this extra debugging information.
On the other side of things, it would also be good to have a progress indicator for the download of each image. This could be shown as either a message before and/or after each image or even better, a progress meter.
Extraneous Vim swap file
There's an extra .swp
file from Vim in the project root, probably want to remove that:
https://github.com/nigorita/create-meme-scraper/blob/dff4dd228ae10bda5e2d061f9af0e2d804bb2f41/.swp
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.