Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update README.md #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mdzz9527 wants to merge 1 commit into CrawlScript:master
base: master
Choose a base branch
Loading
from mdzz9527:patch-4
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ AutoParseCrawler is also an Executor plugin, a Requester plugin and a Visitor pl
+ Just override the corresponding methods of your AutoParseCrawler. For example, if you are using BreadthCrawler, all you have to do is override the `Page getResponse(CrawlDatum crawlDatum)` method.
+ Create a new class which implements Requester interface and implement the `Page getResponse(CrawlDatum crawlDatum)` method of the class. Instantiate the class and use `crawler.setRequester(the instance)` to mount the plugin to the crawler.

### Just to be clear,Using the okHttp3 plugin, which by default is Gzip compressed, the data returned by the request is automatically decompressed.If you manually set accept-encoding, you'll need to decompress the data returned by the request, and okHttp3 won't help you decompress the data.


## Customizing Requester Plugin

Expand Down Expand Up @@ -368,4 +370,4 @@ Element contentElement = ContentExtractor.getContentElementByUrl(url);
## Other Documentation

+ [中文文档](https://github.com/CrawlScript/WebCollector/blob/master/README.zh-cn.md)
-->
-->

AltStyle によって変換されたページ (->オリジナル) /