Re: Vb.net or C#.net Tutorial Project

  • From: "Brent Harding" <bharding@xxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Fri, 21 May 2010 10:04:18 -0500

Hmmm, I never knew that websites can change all the links on the page depending 
on who visits them, even if the site itself may be hosted somewhere else and 
the content is on this Akamai url. My guess would be that when I request the 
URL, their main server decides which is closest and routes the connection there 
for the download to start. If I do indeed get a different url than everyone 
else who grabs one from a file off the same site, that particular site may not 
be a good example. The idea is that you could probably change the base url 
easily, if another 3-hour or other duration show were found that was in 
separate files with a predictable pattern like this. I just picked this example 
as it'd be more basic than card games, and it was the problem I wanted to deal 
with without slowing my machine down with Itunes since working with the broken 
podcast feed would be more difficult.

  ----- Original Message ----- 
  From: Rasmussen, Lloyd 
  To: 'programmingblind@xxxxxxxxxxxxx' 
  Sent: Friday, May 21, 2010 8:32 AM
  Subject: RE: Vb.net or C#.net Tutorial Project


  If you adopt such an audio grabber as a multi-user project, you should check 
first to see whether that Akamai leading URL has location information embedded 
in it.  Akamai is a service for high-speed delivery of content to widely 
scattered users by means of widely distributed servers, and I wouldn't be 
surprised if the URL which Brent gets would be different from the URL for 
Michigan or South Africa.

   

  Lloyd Rasmussen, Senior Project Engineer

  National Library Service for the Blind and Physically Handicapped

  Library of Congress   202-707-0535

  http://www.loc.gov/nls

  The preceding opinions are my own and do not necessarily reflect those of the 
Library of Congress, NLS.

   

  From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of RicksPlace
  Sent: Thursday, May 20, 2010 6:23 PM
  To: Rasmussen, Lloyd; programmingblind@xxxxxxxxxxxxx
  Subject: Re: Vb.net or C#.net Tutorial Project

   

  Hi Brent: Ok, so let me see if I understand. You know a WebSite where you can 
download mp3 files from. Then do you play them in something like Media Player 
or Real Player? There are some tools in vb.net or c# or VWD, I think it is in 
the Framework so likely in all 3, that will do exactly that. I download 
Websites and parse information or use csv files but have not downloaded a mp3 
file. I think there is a standard command or a set of commands, that download 
files and save them in folders if that is what you are trying to do.As you 
mentioned all you do is hard code the leading url that is the same then change 
that part of it that indicates which file you want based on time I think it 
was. You make it a string and call the method to download that file into a 
folder and that should be about all there is to it. You can pop up a MessageBox 
when done but it really shouldn't take very long if you are using a high speed 
internet connection. Also, as you mentioned, you could put what you want into 
an array or just iterate through some inputs and download several at one time. 
That way you might be able to download say the Morning, AfternNoon and Evening 
news or whatever and then play them at your convenience. Too advanced for what 
I have in mind but send me a message off list and I will help you get it 
working. I will have to do a little reading on downloading audio files to see 
if there are any complications. Send me a message at:

  ofbgmail@xxxxxxxxx

  and we can get started. I forget, did you want to work in Vb.net or C#?

  I prefer vb.net since I am way more familiar with that language and have 
examples in Vb.net of doing similar things.

  Rick USA

   

  a blo

    ----- Original Message ----- 

    From: Brent Harding 

    To: programmingblind@freelistsorg 

    Sent: Thursday, May 20, 2010 5:43 PM

    Subject: Re: Vb.net or C#.net Tutorial Project

     

    This sounds interesting. I have just the perfect small project, maybe a 
baby step. I attempted it in VB Script, but can't figure out fixing the bugs. I 
made a show downloader to download this show I like who absolutely requires 
Itunes to do it the automatic way, Juice won't work, adding it to podcast 
directories breaks them, a bad feed, but that's how whatever system their 
station uses must put out. The file names aren't random, and the big long 
akamai url blob at the front is the same, so we can make the hour and date as 
variables to make it work. We have something like 
showname%205-19-10%2012pm.mp3. The same format is used for 1pm and 2pm. In the 
.bvs script I just used an array to cover making it download all 3 hours, and 
the date was entered into an input box tied to a variable. With this x-http dll 
I registered, it worked, but it was buggy. First, there was no indication that 
it was doing anything, the script goes to the background like a service, only 
seen by wscript.exe as a process name, didn't intend to do that. I had an it's 
done sort of message box when it finished so 20 minutes later, and I have 
18mbps Uverse, why x-http takes longer than the old manual way clicking links 
in the browser, it was done. The path to save was hard-coded, maybe I'd like to 
change that, and if there was a way, I'd like to just have it download a range 
of dates if I miss several days.

    ----- Original Message ----- 

      .

Other related posts: