GithubHelp home page GithubHelp logo

Support for generic xml about pup HOT 5 OPEN

anka-213 avatar anka-213 commented on August 13, 2024 5
Support for generic xml

from pup.

Comments (5)

tdlm avatar tdlm commented on August 13, 2024 4

I'd like to bump this thread, since I'd really like pup to parse the RSS feed I'm working with. I'm running into the same issue with the custom <rss /> tag which sits inside <body/>. The latter gets parsed but the former is ignored completely.

from pup.

God-damnit-all avatar God-damnit-all commented on August 13, 2024 1

@ericchiang It has been quite a long time since this issue was first raised, and xpup never did get any binary installs. Do you still plan on having a separate app for this functionality, or have you since decided you'll eventually be able to define your own spec (or use some sort of generic spec)?

from pup.

Ghoughpteighbteau avatar Ghoughpteighbteau commented on August 13, 2024

I was confused at this issue, but I think what @anka-213 means is

echo "<x/>" | pup "x"

fails

while

echo "<a/>" | pup "a"

returns

The fact is, this is a failure of spec. HTML5 allows you to specify custom elements and pup should recognize them.

so 👍

from pup.

ericchiang avatar ericchiang commented on August 13, 2024

@tdlm happy to accept any pull requests.

#47 is the main way I plan to attempt to fix the custom elements (there's a bug somewhere in the code). Though I don't have time to work on that right now.

There is no plan to support XML. See xpup for that.

from pup.

sebma avatar sebma commented on August 13, 2024

@ericchiang I believe tdlm is like me looking for a way to extract data from XML files with CSS Selectors.

xpup use XPath to .extract the data.

@tdlm I found this solution to extract data from RSS : https://superuser.com/questions/528709/command-line-css-selector-tool/529024#529024

It uses to hxselect command from the W3C tools

from pup.

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.