471,337 Members | 896 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

any one experienced with vixy (trying to integrate with python)

I am trying to get a program which will automatically dl the youtube videos i suscribe to for me to watch on my psp.

so i wrote this:

Expand|Select|Wrap|Line Numbers
  1. from urllib2 import urlopen
  2. import urllib2
  3. from ClientForm import ParseResponse
  4. import cookielib
  5.  
  6. response = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookielib.CookieJar())).open("http://vixy.net")
  7. forms = ParseResponse(response)
  8. print forms
  9. form = forms[0]
  10. form2 = forms[1]
  11. print form
  12. print form2
  13. form["u"] = "http://youtube.com/watch?v=qSmVPGps1xs"
  14. form2["e"]= ".mp4" #this returns an error, something about being in a list 
  15.  
  16. print urllib2.build_opener(urllib2.HTTPCookieProcessor(cookielib.CookieJar())).open(form.click()).read()
  17.  
so i need help. the form2["e"] part returns this error:

Expand|Select|Wrap|Line Numbers
  1. TypeError: ListControl, must set a sequence
so how do i accomplish that part?

and then how do i keep updating the page to search for the "click here to download file" link?

any help would be useful
Jul 25 '07 #1
1 1003
so nobody has any help to offer me?
Jul 26 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Michael L. Labbe | last post: by
1 post views Thread by Yi-Yu Chou | last post: by
5 posts views Thread by billiejoex | last post: by
3 posts views Thread by Tom Kaz | last post: by
reply views Thread by Christoph Zwerschke | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.