![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
casper-base
Advanced tools
A personal, simple module of CasperJs for scraping the web!
Turned out that there are some configurations (and some utils) that I always needed (re)writing a scraper in CasperJs. So I'm trying to wrap every simple and almost full configurable piece of code to start new projects from here and not totally from scratch or with copy-paste.
You can simply install via NPM, but the require
will be a little bigger cause you will run it with CasperJs and not with NodeJs.
npm install casper-base
Or clone the repo if you want start from here:
git clone https://github.com/LasaleFamine/casper-base.git
Or simply download the main files:
/custom-utils (entire folder)
config.json
casper_base.js
And put them in the root directory of your project.
Right now you can change directly the config.json
file of the NPM module to change the configuration of your casper.create()
method.
You can also clone this repo and change the configurations as you want.
For more information about CasperJs configuration: Casper Options
{
"clientScripts": [],
"pageSettings": {
"loadImages": false,
"loadPlugins": false
},
"logLevel": "warning",
"verbose": true
}
Simply require
for your casper instance the casper_base
module.
If was installed via NPM:
var casper = require('./node_modules/casper-base/casper_base')
Or if the file is in your root directory:
var casper = require('./casper_base')
Don't forget to leave the custom-utils
folder within the main casper_base
with the current hierachy.
First install casperjs
and phantomjs
if you did't yet:
npm install --save casperjs phantomjs
Write your first scrapy!
var casper = require('./casper_base')
// Simulate error 404
casper.start('http://google.com/sad')
casper.run()
Forks are always appreciate! :airplane:
FAQs
A CasperJs module some boilerprate to start writing a scraper
The npm package casper-base receives a total of 5 weekly downloads. As such, casper-base popularity was classified as not popular.
We found that casper-base demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.