473,405 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 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 1109
so nobody has any help to offer me?
Jul 26 '07 #2

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

Similar topics

6
by: Michael L. Labbe | last post by:
Hello. I'm an experienced programmer who is evaluating learning Python if it is applicable to a few projects. The programs I am going to list are production software - they are not throwaway toy...
1
by: Yi-Yu Chou | last post by:
Dear all, I need to integrate python, vtk and my own C++ object. Is it possible to do it by using python/C API ? Or there is a more efficient way to do it. Where can I find the examples taking...
7
by: Philippe C. Martin | last post by:
Hi, I am looking for the pros and cons as to how to integrate a Python module into a Windows native application. So far I have looked at 1) coding the C wrapper myself 2) using Pyrex 3)...
5
by: billiejoex | last post by:
Hi all. I was wondering if it ispossible to integrate C source in a python project. Best regards
3
by: Tom Kaz | last post by:
I need to compute integral of some array function, something like: from scipy import * f = lambda x: array( ) integrate.quad(f, 0, 1) Unfortunately integrate.quad requires Float type.
0
by: Christoph Zwerschke | last post by:
I just thought it would be nice to have a standardized place to put the accompanying documentation for Python site packages, and something like a hook to register documentation so that all...
0
by: datulaida | last post by:
hi all... actually i want to used Apple Pie Parser in Python... so,i decide to used jpype to integrating Python with the JNI class in Java.. it is possible? i need any suggestion? tq..
7
by: analfabete | last post by:
Hi, I begin in python program and I would like to know how I can do to integrate Internet Explorer into my python program without titlebar statusbar etc... Just with the main windows (windows which...
0
by: couge | last post by:
Hi all, I met a weird problem when using scipy.integrate.odeint(). It is followed as: from scipy import * y=integrate.odeint(lambda y,t:sin(y)*y,y0=random.rand(N),t=arange(0,100)) If N>=...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.