472,993 Members | 3,230 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,993 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 1098
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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.