Skip to main content

Posts

How to download the source code (JS,CSS and images) of a website through its URL (Web Scraping) with Node.js

In no case shall we (Our Code World) or the developer of this module be liable for direct, indirect, special or other consequential damages resulting from the use of this module or from the web pages downloaded with this module. Use it at your own risk. And with our disclaimer we don't talk about that you computer will explode by using the module that we'll use to copy a website. We only warn that this script should not be used for illegal activities (like, fake a website and expose it in another web domain), but learning more about Node.js and web development.  Having said that, have you ever seen an awesome website with some awesome gadget or widget that you absolutely want to have or learn how to do but you don'f find an open source library that does that? Because as first step, that's what should do as first, look for an open source library that creates that awesome gadget and if it exists, implement it in your own project. If you don't find it, then you can use...

How to install and use lwip (Light Weight Image Processor) in Windows for Node.js

The image processing is a heavy task to be handled in Javascript, therefore if you want to provide a smooth usage experience in the manipulation and image processing, you will choose lwip among other image processing libraries available for node.js (like  jimp , an image processing module written in pure javascript) because lwip uses a native module written in C++, which will make the image processing fast and fluid. The lwip module provides comprehensive, fast, and simple image processing and manipulation capabilities. There are no external runtime dependencies, which means you don't have to install anything else on your system. Supported formats Decoding (reading): JPEG, 1 & 3 channels (grayscale & RGB). PNG, transparency supported. GIF, transparency supported. Animated GIFs can be read, but only the first frame will be retrieved. Encoding (writing): JPEG, 3 channels (RGB). PNG (lossless), 3 channels (RGB) or 4 channels (RGBA). GIF (no animations) In this article you'...