• 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
656 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,756 Topics
  • 63.6 K Posts
  • 20 Online
  • 2,249 Members
Our newest member: electronic
Latest Post: Part 15 Too Restrictive for Automakers
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

  • RichPowers

    Ultra long range Part 15 broadcasting (to space)

    While car makers appear to be opting for the licenced s...

    By RichPowers , 1 day ago

  • Mark

    Here's a look at why we do processing and what each function does.

    Shows for FM but applies to AM also.

    By Mark , 5 days ago

  • Mark

    RE: Early 80s Realty Radio' AM transmitters

    I don't think the audio quality would be that good on t...

    By Mark , 2 weeks ago

  • RichPowers

    RE: Early 80s Realty Radio' AM transmitters

    I was very tempted to buy them both, they were dirt che...

    By RichPowers , 2 weeks ago

  • RichPowers

    RE: Part 15 Too Restrictive for Automakers

    @mark I had to pause when you mentioned "15 minute citi...

    By RichPowers , 2 weeks ago

Recent Topics

  • Mark

    Here's a look at why we do processing and what each function does.

    By Mark 5 days ago

  • RichPowers

    Part 15 Too Restrictive for Automakers

    By RichPowers 2 weeks ago

  • RichPowers

    From Virtue to Vice - Music Morality

    By RichPowers 3 weeks ago

  • RichPowers

    affordable DAC Impressive Versatility “audiophile quality” Promising Big performance at small price

    By RichPowers 3 weeks ago

  • RichPowers

    New Canadian Resident?

    By RichPowers 3 weeks ago

Topic Tags

  • Carl Blare3
  • KDX RADIO3
  • WINDOZE3
  • Transmitter2
  • Radio Phvern2
  • station upgrade2
  • archive.org2
  • playlist2
  • Zara Radio2
  • #SW2101
View all tags (75)

Copyright © 2026 · Part15.org · Log in

‹›×

    ‹›×