Comments (1)
ignore_links
/ignore_links_like
matches the full link (the String form of the URL), so your Regexp is matching against the beginning of the URL not the path. Probably something like spider.ignore_urls_like { |url| url.path.start_with?('/blog/) }
. Hope that helps.
from spidr.
Related Issues (20)
- Following redirects HOT 4
- Page#to_absolut raises URI::InvalidURIError: path conflicts with opaque HOT 7
- Limit crawl to links matching pattern HOT 3
- unable to ignore links HOT 4
- Add ignore_paths and ignore_paths_like
- Add low-level HTTP request methods
- `ignore_links` not working. HOT 4
- path conflicts with opaque (URI::InvalidURIError) HOT 3
- Thank you HOT 1
- Add Logging
- Figure out why specs are failing only on JRuby? HOT 1
- Switch to Ruby 2.x keyword arguments
- Switch to using async-http HOT 1
- Add spec for `Spidr::Agent.start_at`
- Add spec for `Spidr::Agent.site`
- Add spec for `Spidr::Agent.host`
- Write specs for Agent.domain HOT 1
- Support passing a URI as a proxy setting
- How to control the depth of crawling? HOT 1
- Switch to `Addressable::URI` for URI parsing
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.
from spidr.