j0k3r / graby-site-config

Graby site config files
Other
19 stars 30 forks source link

Configuration for monde-diplomatique.fr + nextinpact.fr #13

Closed bdunogier closed 7 years ago

bdunogier commented 7 years ago

The title says most of it. It includes paywall configuration.

It uses the expression language to get the value of a login field from the login form itself. It uses request_html and xpath functions, that request an uri and return a value from an xpath query.

Expression language (and extra_fields key/value support) are implemented in https://github.com/bdunogier/guzzle-site-authenticator/pull/14. It itself depends on https://github.com/wallabag/wallabag/issues/2751, that improves the extensibility of the http client service definition.

But with both of those, it works like a charm here (I have an account for testing, but I don't know how that works).

bdunogier commented 7 years ago

And one more :-)

j0k3r commented 7 years ago

This looks very complex but if it's works :+1:

bdunogier commented 7 years ago

This looks very complex

It ain't simple, I agree. But at least it is flexible, and I think it is what we need the most for the time being.