Posts: 12
Joined: Mar 2005
Reputation:
0
ok,
so i am a bit of a newbie. i am just getting into learning python. so i am not planning on doing this script for a while.
but would it be possible to:
have a script that opens up,
from there you would select a web site (ethier off a list or type in)
then it goes to the web site and recrusively sreachs the links. finds all the media and then reports back, giving the user the links.
i dont know enough to know if this is plasable. but if it could work you would have the ability to add any site, and any changes they make (ifrim springs to mind) would have no relavance on the script.
am i just blowing smoke here?
jt
Posts: 928
Joined: Feb 2004
Reputation:
0
Asteron
"Skilled" Python Coder
Posts: 928
most websites present data in different ways that you would want to parse with something like regular expressions (which is what pretty much all of the current scripts do nowadays)....
remember that most links are not going to be movies and it is pretty hard to tell which link is a movie in a general sence purely programatically. plus you may have to redirect to a seperate movie page and you may only see the movie in an embedded tag.
what you could do is define a very general interface for different sites and parse small easy-to-create configs that contain the parsing information for different sites but this is pretty hard to do well and in a general way considering all the variations out there. the media browser script sorta does this but the parsing modules are pretty big scripts in themselves so it doesnt seem to save much.
Posts: 928
Joined: Feb 2004
Reputation:
0
Asteron
"Skilled" Python Coder
Posts: 928
again i suspect this wouldnt work for most sites since the sites with interesting videos rarely have a page full of wmv links.. its always links to pages with embedded players or redirects to a file server page that autodownloads the link etc...
Posts: 211
Joined: Mar 2005
Reputation:
0
Bernd
Senior Member
Posts: 211
l am already working on this. even though if is not fully generic. but l am working on a unified browser, so you don't have to create a new script every time.
you just need to derive from a baseless and perform the parsing. you put your class in an own file and put that in a folder. that's it!
maybe i can release it this weekend.
it just needs some finetuning before releasing it..
bernd
Posts: 707
Joined: Jul 2004
Reputation:
6
if you need some tests and/or help, i'm yours !!
see ya
Posts: 12
Joined: Mar 2005
Reputation:
0
add me to that list. any help i can offer.
jt
Posts: 12
Joined: Mar 2005
Reputation:
0
have only had a little time to play with it. but it looks like it came together nicely.
i bet we will be able to add a lot of sites to this.
jt