From 7f8f8271e49a2834a87012ea838099c8b46cf63f Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sat, 14 Mar 2015 00:22:11 +0100 Subject: redo the whole lot of commits I've deleted while trying Gitlab/Framasoft mirroring --- docs/en/Developer/write_config_files.html | 214 ++++++++++++++++++++++++++++++ 1 file changed, 214 insertions(+) create mode 100644 docs/en/Developer/write_config_files.html (limited to 'docs/en/Developer/write_config_files.html') diff --git a/docs/en/Developer/write_config_files.html b/docs/en/Developer/write_config_files.html new file mode 100644 index 00000000..17eae753 --- /dev/null +++ b/docs/en/Developer/write_config_files.html @@ -0,0 +1,214 @@ + + + + + + + wallabag - Write config files + + + + + + + + + + +
+
+ + + + + +
+

Write config files

+

wallabag can use specific site config files to parse website articles. These files are stored in the inc/3rdparty/site_config/standard folder.

+

The format used for these files is XPath. Look at some examples in the folder.

+

Automatic config files generation

+

Fivefilters has created a very useful tool to create config files. You just type in the adress of the article to work on with, and you select the area containing the content you want.

+

siteconfig

+

You should confirm this area by trying with other articles.
+When you got the right area, just click on Download Full-Text RSS site config to download your file.

+

Manual config file generation

+

If Fivefilters tool doesn't work correctly, take a look at the source (Ctrl + U on Firefox and Chromium). Search for your content and get the class or the id attribute of the area containing what you want.

+

Once you've got the id or class, you can write for example one or another of these lines:

+
body: //div[@class='myclass']
+body: //div[@id='myid']
+

Then, test you file. If you got the right content but you want to strip unnecessary parts, do:

+
strip: //div[@class='hidden']
+

You can look at other options for siteconfig files here.

+
+ +
+
+ + + + + + + + + -- cgit v1.2.3