Improve doc and remove useless config parameters
This commit is contained in:
parent
fb800d739d
commit
dd47b7ae48
@ -10,13 +10,11 @@ How the content grabber works?
|
|||||||
2. Try to find the text content by using common attributes for class and id
|
2. Try to find the text content by using common attributes for class and id
|
||||||
3. Finally, if nothing is found, the feed content is displayed
|
3. Finally, if nothing is found, the feed content is displayed
|
||||||
|
|
||||||
The content downloader use a fake user agent, actually Google Chrome under Mac Os X.
|
|
||||||
|
|
||||||
However the content grabber doesn't work very well with all websites.
|
However the content grabber doesn't work very well with all websites.
|
||||||
|
Especially websites that use a lot of Javascript to generate the content.
|
||||||
|
|
||||||
**The best results are obtained with Xpath rules file.**
|
**The best results are obtained with Xpath rules file.**
|
||||||
|
|
||||||
|
|
||||||
How to write a grabber rules file?
|
How to write a grabber rules file?
|
||||||
----------------------------------
|
----------------------------------
|
||||||
|
|
||||||
@ -48,9 +46,15 @@ return array(
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
Actually, only `body`, `strip` and `test_url` are supported.
|
Actually, only the keys `body`, `strip` and `test_url` are supported.
|
||||||
|
|
||||||
Don't forget to send a pull request or a ticket to share your contribution with everybody.
|
Miniflux will try first to find the file in the [default bundled rules directory](https://github.com/miniflux/miniflux/tree/master/vendor/fguillot/picofeed/lib/PicoFeed/Rules), then it will try to load your custom rules.
|
||||||
|
|
||||||
|
Sharing your custom rules with the community
|
||||||
|
--------------------------------------------
|
||||||
|
|
||||||
|
If you would like to share your custom rules with everybody, send a pull-request to the project [PicoFeed](https://github.com/fguillot/picofeed).
|
||||||
|
That will be merged in the Miniflux code base.
|
||||||
|
|
||||||
List of content grabber rules
|
List of content grabber rules
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
@ -23,8 +23,6 @@ function get_reader_config()
|
|||||||
$config->setClientUserAgent(HTTP_USER_AGENT);
|
$config->setClientUserAgent(HTTP_USER_AGENT);
|
||||||
|
|
||||||
// Grabber
|
// Grabber
|
||||||
$config->setGrabberTimeout(HTTP_TIMEOUT);
|
|
||||||
$config->setGrabberUserAgent(HTTP_USER_AGENT);
|
|
||||||
$config->setGrabberRulesFolder(RULES_DIRECTORY);
|
$config->setGrabberRulesFolder(RULES_DIRECTORY);
|
||||||
|
|
||||||
// Proxy
|
// Proxy
|
||||||
|
Loading…
Reference in New Issue
Block a user