Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

problem android.pit #33

Closed
radlerandi opened this issue Jan 20, 2014 · 2 comments
Closed

problem android.pit #33

radlerandi opened this issue Jan 20, 2014 · 2 comments

Comments

@radlerandi
Copy link

"androidpit.de": { "type": "xpath", "xpath": "article" },
funktioniert für fast alle Artikel, außer für App-Tests,

da bricht der Text zwischen "Bewertung - Gutes" und dem "Daumen hoch" ab.
Beispiel-Artikel http://www.androidpit.de/skoobe-die-mobile-bibliothek-app-test

@zajad
Copy link

zajad commented Jul 6, 2014

Das Problem wird dadurch zwar nicht gelöst und man verliert einige Informationen (Pro, Contra zur App), aber der Rest (das eigentliche Review) bleibt einem erhalten, wenn man "reviewGoodBad" einfach ausschließt (über cleanup). Ich habe das so gelöst:

"androidpit.de": {
    "type": "xpath",
    "xpath": "div[@id='pageTop']/div[@class='containerContent']/div[@class='wrapper hfeed']/section[@class='mainContent']/article[@id='mainArticle']",
    "cleanup": [ "header", "footer", "section[@id='reviewHeader']/div[@class='reviewGoodBad']" ],
    "force_charset": "utf-8"
}

Wichtig für das Problem ist der folgende Teil:

"cleanup": [ "section[@id='reviewHeader']/div[@class='reviewGoodBad']" ],

@radlerandi
Copy link
Author

Habe die cleanup-Zeile hinzugefügt und es funktioniert wunderbar.
Und ich finde bestimmt auch noch andere Feeds, bei denen ich Abschnitte ausblenden werde.
Danke für den Hinweis! :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants