Commit graph

18 commits

Author SHA1 Message Date
Daniel Bulant
e889cf1855
fix reqwest feature being mandatory 2025-08-31 14:21:14 +02:00
messense
ec7b2fd986
Fix some more clippy warnings 2022-03-30 10:21:52 +08:00
messense
548ea65072
Update reqwest to 0.11 2022-03-30 10:15:35 +08:00
Laurent Arnoud
6ba403aab9
Inital github-actions (#25)
* Inital github-actions

most taken from starship project
ref #21

* rustfmt config remove unknown configuration options

* Run rustfmt

* clippy: use any instead of find..is_some

* clippy: Remove the `clone` call: `self.crawl_delay`

* Clippy fixes

* Rustfmt fixes

* clippy: fix dont need to add `&` to all patterns

* clippy: fix needless `fn main` in doctest

* clippy: fix if-then-else expression returns a bool literal

* clippy: fix very complex type BoxFuture response

* clippy: fix variable `line_no` is used as a loop counter

* clippy: dereference the expression on tests

* clippy: fix assert(true) will be optimized out by the compiler

* github: name workflow
2020-03-30 09:32:32 +08:00
Laurent Arnoud
df49f6bcf0
Error handling (#24)
* Add test when url is invalid and panic

* Initial error handling

ref https://github.com/messense/robotparser-rs/issues/22

* Rename ErrorKind::HttpClient => ErrorKind::Http

* Implement std::error::Error and rename to Error
2020-03-08 20:33:34 +08:00
Laurent Arnoud
1474a8cce9
Switch to https for urls (#23) 2020-03-02 15:20:44 +08:00
svmk
2d19755779
Refactoring of robotparser-rs (#20)
* Migrated sites into robotsparser file.

* Robots.txt refactoring.

* Migrated to new version of url and reqwest.
2020-01-31 17:00:58 +08:00
Laurent Arnoud
19bd3b4cf6
Use host_str instead domain for HostInternal 2018-03-11 22:05:14 +01:00
messense
8ede3b4218
Feature gate hyper 2016-10-02 13:17:15 +08:00
messense
17a36159a7 Add Request-rate support. Closes #4 2016-08-21 11:35:24 +08:00
Mikhail Svetov
626fa947e4 Added sitemap support. 2016-02-08 17:23:46 +07:00
Mikhail Svetov
02eedd6246 Improvements. 2016-01-13 21:18:07 +07:00
Mikhail Svetov
49a2b9c93d Added crawl delay feature. 2016-01-13 20:51:54 +07:00
messense
ac7d7aa8db Refactor some API to be more generic over Rust strings 2015-10-21 15:40:06 +08:00
messense
cbe515e761 Add RobotFileParser.read test case 2015-07-01 10:23:07 +08:00
messense
8e2944d8a4 Bug fixes and add more test cases 2015-07-01 00:01:15 +08:00
messense
e8928ec198 Bug fix and add more tests 2015-06-28 09:59:52 +08:00
messense
ece1e1f3c4 Initial commit. 2015-06-28 01:29:05 +08:00