Git Product home page Git Product logo

status-crawler's People

Contributors

doxakis avatar rjduffner avatar seethroughtrees avatar snufkin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

status-crawler's Issues

Trouble crawling https sites

Hello I am kind of new to programming so forgive me if this is a simple question but I have been able to use you tool against http sites with no issue but I am having trouble getting it to work with a https site. It hits the first page and returns null indicating that it did not crawl the exits. Do you have any suggestion to get it to work with an https site. Thank you.

404s not being added to errors array

The spider works well but I'm finding that 404s from the same domain are not being added to the errors array. Is this by design or an issue? Is it possible to add an errorCount property such that consumers of the JSON know if there are issues with the crawl (rather than traversing the entire links collection)?

{
  "start": "http://test.xxx.com",
  "date": "2015-03-02T18:35:48.946Z",
  "dateFileName": true,
  "requiredValues": [
    "test.xxx.com"
  ],
  "skippedValues": [
    "default"
  ],
  "links": [
    {
      "url": "http://test.xxx.com#portfolioModal6",
      "status": 200
    },
    {
      "url": "http://test.xxx.com#",
      "status": 200
    },
    {
      "url": "http://test.xxx.com/help",
      "status": 404
    },
    {
      "url": "http://test.xxx.com/contact",
      "status": 404
    }
  ],
  "errors": [],
  "messages": [],
  "skippedLinksCount": 7,
  "logFile": "./logs/2015-03-02-data.json",
  "linkCount": 4,
  "userAgent": null
}

User Agent and Proxies

Hi there.

I tested your spider and its working good. Two suggestion are:

  • UserAgents options, so you can change to whatever you want
  • Proxies use, so you can add proxies and crawl pages with it PROXY:PORT:USERNAME:PASSWORD

url bugs

--required-values spiders ALL

What versions of phantomjs

What version of phantomjs and casperjs does this work with?

Currently I'm using CasperJS 1.0.4 and PhantomJS 1.8.2.

I keep getting the following result...

^_^[sam@casperjs:~/casperjs-spider]$ casperjs spider.js
{
    "casper-path": "/home/sam/packages/casperjs",
    "cli": true
}
null https://example.com/
Crawl has completed!
Data file can be found at ./logs/data.json.

The page has many links though. I also saw this result when I tried the original spider.js from PlanZero.

load-images parameter not working

The load-images parameter doesn't seem to be working from the command line:

$ casperjs.exe --start-url=http://test.xxx.com --required-values=test.xxx.com --load-images=true spider.js

Even if I change this within config.js explictly the spider doesn't seem to crawl tags in my site's pages.

Version: 1.1.0-beta3 and 1.9.6 for phantomjs.

NPM package?

Any interest in publishing this as a CLI tool on NPM?

I have have a Travis CI build running on a static site that checks for various errors, and I'd like to be able to run the crawler during the build to make sure links/JavaScript isn't getting broken on the branch.

To do that, Travis would need a package it could grab and install.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.