Looking for the ultimate HTTP fetch function
#61
phunck
i saw that you found access to the to drive z.
do you move the cache folder to z:?
Reply
#62
yes i moved it to z:\\~httpcache\\ . i also added clientcookie support yesterday and have been playing with https... https does not work in python2.4 when setdefaulttimeout is used ( http://mail.python.org/piperma....68.html ). but i feel it is not too important since it must be a minority of sites that uses ssl.i'm not sure if it works in python 2.3 (on the xbox).

i will upload the new version when i get home . (i don't have it here at work.)
Reply
#63
awesome!
i'm currently integrating cachedhttp in flexibrowser.
Reply
#64
i've just been using beautiful soup for another python html parsing project. i would really recommend having a look at it: http://www.crummy.com/software/beautifulsoup/

great for ripping out content and for writing new content back in.
Reply
#65
how about adding support for formdata as well  :kickass:

ahh i see you have it in your todolist.
when when  Wink
Reply
#66
nice, i like the look of soup. seems like a much better alternative for beginners.
regex is okay, but you have to use it every day to be efficient at it. also, regex is pretty heavy on the xbox's limited resources
most the time i just use string.find when i'm just looking for left and right boundries, it saves dev time cos i don't need to check my code until i'm ready to run!
Reply
#67
i just updated cachedhttp so that it supports basic authentication. it should also support form daata but that is untested...
Reply
#68
gahhh... who merged these two topics? parsing html with regular expressions and fetching a file over http are two completely unrelated topics and both threads had a lot of useful data before they were merged.
Reply
#69
Thumbs Up 
i just successfully integrated cachedhttp into my flexibrowser script. and i can say it really rocks :kickass:

i encourage every scriptwriter to check it out and see if you can put in your script.
especially the possibility to derive you own class and customize the progress dialog is awesome.

scriptwriter get cachedhttp and unify your http fetching code!!! :agree:
Reply
#70
(asteron @ may 12 2005,23:34 Wrote:gahhh... who merged these two topics?  parsing html with regular expressions and fetching a file over http are two completely unrelated topics and both threads had a lot of useful data before they were merged.
is it possible to re-seperate the two threads?
this is really confusing :nuts:
Reply
#71
(bernd @ may 16 2005,00:59 Wrote:
(asteron @ may 12 2005,23:34 Wrote:gahhh... who merged these two topics? parsing html with regular expressions and fetching a file over http are two completely unrelated topics and both threads had a lot of useful data before they were merged.
is it possible to re-seperate the two threads?
this is really confusing :nuts:
yeah,

please do it the were really great infos in regexp tread.

cu lolol
Reply
#72
doubt it's possible... at least there was enough of a temporal differential that the interleaving isnt too bad.

ot: i find it a little sad that i just used 'temporal differential' in a sentence... i honestly couldnt fathom any other formulation that satiated me. definitely need to learn to type more tersely.
Reply
#73
hey guys.. i'm trying to use the cachedhttp script, but when i use it, i get an error saying that it doesn't have the cachedhttpwithprogress module.

i get the same error when i try to launch ooba browser. am i missing something?
Reply
#74
the updated cachedhttp script (on xbmcscripts) seems to give me some trouble; it complaints about clientcookie not found,
what i noticed as well, once i use a use dynamic urls e.g. bla.php?nav=44232, these are stored, but when recalled, the file is actually being retrieved/cached again. in the cache you will only see the filename increase with a number e.g. bla[6] or something similar. is this correct ?

bakman
Reply
#75
sorry if i broke cachedhttp... i'll look at it and fix it later today.

the thing about clientcookie not found: there needs to be a clientcookie.zip in the same directory as cachedhttp.py.
Reply

Logout Mark Read Team Forum Stats Members Help
Looking for the ultimate HTTP fetch function0