• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Part15

Part15

License Free, legal, low-power radio broadcasting

  • About Us
  • Forums
  • Resources
  • Members
  • Contact Us
  • Log In
Forums
Main Category
temp
WGET / Programming ...
 
Notifications
Clear all

WGET / Programming GURU's need help / Parsing XML [windows]

 
temp
Last Post by Anonymous 10 years ago
9 Posts
2 Users
0 Reactions
602 Views
RSS
 Part 15 Engineer
(@part-15-engineer)
Posts: 190
Reputable Member Registered
Topic starter
 

i need wget for windows to download and parse an xml file IE: extract the url for the latest mp3 file at Democracy now [for example] RSS feed and download it to a directory on my PC for later playout in automation.

 

the DN feed is dynamic [as with most promgramming sources] with the url chaning for each new edition but being contained in the RSS XML and i need it to download and change [rename] to a static name for the automation playout.

 

i had this working and then something happened and it quit working.

 

i have been for months trying to get it to work again with no luck.


 
Posted : 21/05/2016 7:28 am
 Anonymous
(@Anonymous)
Posts: 0
 

You're going to need more than wget for that.

wget can download both the xml file and the audio file in the enclosure, but you're going to need something to parse the XML output to find the appropriate info.     While you might skirt by using the mirroring bits of wget, if there's some src URI before the audio enclosure, you're probably going to end up with that rather than the (presumably) MP3 file you're looking for.

And this is where my helpfulness kind of ends, as my next step would be to do it with some scripting.  I'd use perl or php because they've got straightforward xml parsing capabilities, that way I can avoid edge cases of rss feeds without too much worry.   That said, I've seen people do it using bash, sed, and awk.

Note that all of these are unix utils.    I've heard perl and php can run on windows, but I've not experience with that.


 
Posted : 22/05/2016 11:09 am
 Anonymous
(@Anonymous)
Posts: 0
 

Oddly enough, I'm working on doing XML parsing this week for an unrelated project.

I was thinking of a URL you could send an RSS feed to, and it would send you the most recent episode off the podcast in return.      Probably host it myself as I end up needing something like this every once in a while, but I'd also probably post the code somewhere so it was generally available.

Does that suit?


 
Posted : 03/06/2016 8:32 am
 Anonymous
(@Anonymous)
Posts: 0
 

i'd give it a try


 
Posted : 03/06/2016 9:45 am
 Anonymous
(@Anonymous)
Posts: 0
 

I wrote a simple C program to parse the BC Ferries web page (when I was issuing ferry reports on Bowen Island), and then generate text that I would convert into speech using TTS.  If you're at all familiar with programming, it gives you the most flexibility.


 
Posted : 03/06/2016 10:09 am
 Anonymous
(@Anonymous)
Posts: 0
 

to figure out this Democracy Now problem. asked the question over at stack overflow, no response yet. it's been a day as of this post.


 
Posted : 13/06/2016 8:18 am
 Part 15 Engineer
(@part-15-engineer)
Posts: 190
Reputable Member Registered
Topic starter
 

wget -O DemocracyNow.mp3 --no-check-certificate  https://traffic.libsyn.com/democracynow/dn%Date:~10,4%-%Date:~4,2%%Date:~7,2%-1.mp3 

 

save as a batch file, execute from windows task scheduler 🙂

 

enjoy.

 

was given to me by a party in an engineering group on facebook.


 
Posted : 14/06/2016 4:34 pm
 Anonymous
(@Anonymous)
Posts: 0
 

see this url,,

http://pastebin.com/QMZfipbT


 
Posted : 14/06/2016 6:16 pm
 Anonymous
(@Anonymous)
Posts: 0
 

https://gist.github.com/refutationalist/0fd8d056de3d9c9a410a5a87a78b7779

Alright.   You *can* install PHP on windows and (I'm pretty sure) use this as a command line script.    Instructions on how to use it are in the comments.

I'd make more windows-specific noises, but I'm *really* not a windows guy.   I think I've got a window tablet somewhere, but I only got it to test websites I work on.


 
Posted : 15/06/2016 3:59 pm
Forum Jump:
  Previous Topic
Next Topic  
Share:
Forum Information
Recent Posts
Unread Posts
Tags
  • 13 Forums
  • 7,740 Topics
  • 63.5 K Posts
  • 50 Online
  • 2,249 Members
Our newest member: electronic
Latest Post: 7 Beatles Misheard Lyrics
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Primary Sidebar

Online Members

 No online members at the moment

Recent Posts

  • Mark

    RE: 7 Beatles Misheard Lyrics

    Many songs have I heard something other than the actual...

    By Mark , 1 day ago

  • Mark

    RE: 7 Beatles Misheard Lyrics

    Have you heard this?

    By Mark , 2 days ago

  • RichPowers

    Unique AM Transmitter

    Here one I've not seen before. they're $69.50 on eBay, ...

    By RichPowers , 2 days ago

  • RichPowers

    7 Beatles Misheard Lyrics

    As far as I'm concerned this article is ridiculous, I d...

    By RichPowers , 2 days ago

  • Mark

    RE: Newly Discovered Robert Johnson in Stunning Clarity

    @richpowers Sounds good.

    By Mark , 2 days ago

Recent Topics

  • RichPowers

    Unique AM Transmitter

    By RichPowers 2 days ago

  • RichPowers

    7 Beatles Misheard Lyrics

    By RichPowers 2 days ago

  • RichPowers

    Public Domain Feature Films about Radio

    By RichPowers 3 days ago

  • RichPowers

    Speed Limit 17.3mph

    By RichPowers 5 days ago

  • ArtisanRadio

    Artisan Radio Pivots Again

    By ArtisanRadio 5 days ago

Topic Tags

  • Carl Blare3
  • KDX RADIO3
  • WINDOZE3
  • Transmitter2
  • Radio Phvern2
  • station upgrade2
  • archive.org2
  • playlist2
  • Zara Radio2
  • Carrier Current1
View all tags (74)

Copyright © 2026 · Part15.org · Log in

‹›×

    ‹›×