Giter VIP home page Giter VIP logo

Comments (5)

ravenx99 avatar ravenx99 commented on June 27, 2024

I'm in the same boat... I want to pull a comic image from a page that has no classes. This doesn't seem to work (Firebug says it's the xpath to the image tag).

"xpath": "html/body/table/tbody/tr[2]/td/table/tbody/tr/td[2]/table/tbody/tr/td/table/tbody/tr[2]/td/img"

from ttrss_plugin-af_feedmod.

m42e avatar m42e commented on June 27, 2024

Can you provide a sample url?

from ttrss_plugin-af_feedmod.

troydunham avatar troydunham commented on June 27, 2024

I'm having a similar issue with a page without usable DIV classes. I have found a unique locator but can't seem to get it to pull body text.

Here is an example page: http://paddocktalk.com/news/html/story-259326.html
Here is the unique string: "IMG SRC=http://paddocktalk.com/news/html/images/smilies/icon_smile.gif"
I've tried all variations of XPATH that I can think of. My other pages with div classes are working perfectly.

from ttrss_plugin-af_feedmod.

m42e avatar m42e commented on June 27, 2024

It seems to me, that it is not a proper xml format, maybe some tags are missing or there is no encoding specified so some characters can not be read successfully. This will lead to errors and the xpath selection is not performed. You can try my version and use the split method. https://github.com/m42e/ttrss_plugin-af_feedmod

from ttrss_plugin-af_feedmod.

m42e avatar m42e commented on June 27, 2024

Ok, i digged in deeper.

@troydunham try: "xpath" : "td[@width='85%' and @valign='top' and @bgcolor='#FFFFFF']" and you may be near the treasure.....

from ttrss_plugin-af_feedmod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.