optimalbits / crawlme Goto Github PK
View Code? Open in Web Editor NEWAjax crawling for your web application
Ajax crawling for your web application
Is there a way to update what port zombie uses? My site runs on 8080 so zombie always fails to connect to what it thinks it wants.
Take a look at some characters such as ñ in this pages:
According to this:
https://groups.google.com/forum/#!msg/zombie-js/qOS0W_cMCgQ/4iFcqLjVEPgJ
It seems like this code in crawlme.js cannot work because the callback doesn't get browser. Simply removing the browser argument from the callback seems to fix the issue.
browser.visit(url, {waitFor: options.waitFor},
function(err, browser, status) {
if(err) return cb(err);
// links
var links = browser.queryAll('a'); // browser is undefined
links.forEach(function(link) {
var href = link.getAttribute('href');
var absoluteUrl = urlParser.resolve(url, href);
link.setAttribute('href', absoluteUrl);
});
In crawme.js (starting line 30) you have the following:
var protocol = req.protocol || options.protocol;
var url = options.protocol + '://' + req.headers.host;
that second options.protocol should just be protocol, otherwise the above line is useless :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.