Python论坛  - 讨论区

标题:[python-chinese] 如何用python加载IE

2008年02月28日 星期四 22:12

He Jibo hejibo在gmail.com
星期四 二月 28 22:12:29 HKT 2008

´óÄã¬
     ÄúºÃ£¬
     Èç¹ûÎÒÖ»Ï룬ÿ´ÎÍøҳˢк󣬱£´æËüµÄURL£¬Ó¦¸ÃÔõô×öѽ£¿
Çë´óÄøøµãÖ¸µã¡£:-) лл~~

ºÎ¼ª²¨

2007/12/30 lai yonghao <lanphaday在gmail.com>:

> Äã¿ÉÒÔÊÔÊÔpyime,http://pamie.sourceforge.net/
>
> import cPAMIE
>
> ie= cPAMIE.PAMIE()
>
> # Start Script:
>
> ie.Navigate ('http://pamie.sourceforge.net/pamieform.html'>
> )
> ie.SetTextBox('John','firstname',0)
> ie.SetTextBox('Doe','lastname',0)
> ie.SetTextBox('1020 State Street','Addline1',0)
> ie.SetTextBox('Suite #16','Addline2',0)
> ie.SetTextBox('San Mateo','city',0)
> ie.SetListBox('CA','state',0)
> ie.SetTextBox('90210','zip',0)
>
> ie.ClickButton('Submit',0)
>
>
> ÔÚ07-12-30£¬He Jibo <hejibo在gmail.com> дµÀ£º
> >
> > ллÄúµÄ»Ø¸´¡£
> > ÎÒÊÇÏëÔÚÓÃPythonдµÄÒ»¸öʵÑé³ÌÐòÖУ¬´ò¿ªie£¬²¢ÇÒ½øÐÐÉÏÍø»î¶¯£¬Í¬Ê±£¬ÎÒ»áÓÃÆäËü·½Ê½¼Ç¼ÉÏÍøµÄÑÛ¶¯ÐÐΪ¡£
> > ÎÒÊÇÏëÖªµÀÈçºÎÓÃpythonµ÷ÓÃie,ÔÚ´ò¿ªµÄieÖУ¬ÒÀÈ»¿ÉÒÔÊäÈëÎÄ×Ö£¬µã»÷Êó±êµÈ¡£
> > ÔÚÍøÉÏÕÒÁËһЩ´úÂë¡£¿ÉÊÇËüÖ»ÄÜÒÔÎı¾µÄ·½Ê½ÊÕµ½Ò»Ð©Êý¾Ý£¬²¢Ã»Óдò¿ªÒ»¸öie£¬¿É·ñ·³ÇëÄú½²µÃ¸üÏêϸһµãѽ£¿Ð»Ð»
> >
> > ÏÂÃæÊÇÎÒÔÚÍøÉÏÕÒµ½µÄ×ÊÁÏ
> > http://python.cn/pipermail/python-chinese/2006-April/023175.html
> >
> > # -*- coding: cp936 -*-
> > import urllib,httplib,time
> > class tq:
> >     def __init__(self):
> >         self.headers=""
> >         self.conn= httplib.HTTPConnection(" weather.tq121.com.cn:80<http://weather.tq121.com.cn/>
> > ")#ÕâÀïÊÇtq
> > url
> >
> >     def GetInfo(self):
> >
> >         self.conn.request("GET","/mapanel/index1.php?city=Ïå·®",
> > self.headers)
> >
> >         response = self.conn.getresponse ()
> >
> >         print response.read()
> >
> >
> > test = tq()
> > test.GetInfo()
> >
> >
> > ÔÚ06-3-28£¬cry < zyqmail at tom.com<http://python.cn/mailman/listinfo/python-chinese>>
> > дµÀ£º
> > >*
> > *> *Âí̤·ÉÑ࣬ÄúºÃ£¡
> > *>*
> > *>* лл£¬ÕýÊÇÎÒÐèÒªµÄ¡£PYTHONÕæµÄÊÇÇ¿´ó¡£
> > *>*
> > *>* ÔÚ 2006-03-27 23:15:00 ÄúдµÀ£º
> > *>* >ÔÚ 06-3-27£¬Alan Huang< hygool at gmail.com<http://python.cn/mailman/listinfo/python-chinese>>
> > дµÀ£º
> > *>* >>
> > *>* >> Hi, all
> > *>* >>
> > *>* >> ÈçÌâ¡£
> > *>* >> Èç¹û¿ÉÒÔʵÏÖ£¬¸ü½øÒ»²½£¬ÈçºÎÖ¸¶¨ÓÃijÖÖä¯ÀÀÆ÷´ò¿ªÕâ¸öURL£¬±ÈÈçfirefox / tencent TT;
> > *>* >>
> > *>* >> лл´Í½Ì£¡
> > *>* >>
> > *>* >
> > *>* >µ÷ÓÃϵͳȱʡä¯ÀÀÆ÷´ò¿ªURLµØÖ·£¬Èç webbrowser.open(' http://www.google.com'>)
> > *>* >
> > *>* >Ò»°ãµÄä¯ÀÀÆ÷³ÌÐò¶¼Ö§³ÖÃüÁîÐвÎÊýµÄ¡£
> > *>* >ÀýÈçIE£º
> > *>* >C:\Program Files\Internet Explorer>iexplore http://www.google.com
> > *> *>¾ÍÄÜ´ò¿ªie£¬²¢ÇÒgoµ½http://www.google.com
> > *>* >
> > *>* >ÓÃ
> > *>* >os.system('C:/Program Files/Internet Explorer/iexplore
> > *>* http://www.google.com' <http://www.google.com%27/>)
> > *>* >´ò¿ª¾ÍÐÐÁË¡£
> > *>* >__________________________*
> >
> >  On Dec 30, 2007 1:13 AM, Í·Ì«ÔÎ <torrycn在gmail.com> wrote:
> >
> > > ûÃ÷°×ÄãÒª×öʲô£¿£¿£¿À´»Ø¿´Á˺ü¸±é£¬¾ÍÊÇ¿´²»Ã÷°×¡£¡£¡£
> > >
> > > Èç¹ûÄãÒªÓÃIE´òÒ»¸öURL£¬¿ÉÒÔÓÃos.system »òos.popen»òsubprocessÄ£¿é£¬Ò²¿ÉÒÔÓÃpywin32µÄcreateprocess.
> > >
> > > Èç¹ûÄãÒªÔÚÄãµÄ³ÌÐòÀïʹÓÃIE¿Ø¼þ£¬wxÓжÔÓ¦¿Ø¼þ¡£
> > >
> > >   On Dec 30, 2007 12:24 PM, He Jibo < hejibo在gmail.com> wrote:
> > >
> > >
> > > >   ¸÷λ´óÏÀ£¬
> > > >
> > > > ÎÒÏëÓÃÑÛ¶¯ÒÇÑо¿Óû§Ê¹ÓÃä¯ÀÀÆ÷ÉÏÍøµÄÎÊÌ⡣ϣÍûÇë½ÌÄãһЩ¼¼ÊõÎÊÌâ¡£ÎÒÏëÖªµÀÈçºÎµ÷ÓÃIEѽ£¿ÎÒÏ£ÍûÔÚʵÑé³ÌÐòÔËÐеÄʱºò£¬ÒÀÈ»¿ÉÒÔÏñÕý³£ä¯ÀÀÍøÒ³Ò»ÑùÉÏÍøµÄ¡£²¢ÇÒ
> > > > £¬ÒªÄܹ»±£´æÍøÖ·¡£Ð»Ð»~~~
> > > >      Èç¹ûÖªµÀpythonµÄ´úÂëÔõôд£¬¾Í×îºÃÁË¡£
> > > >
> > > > --
> > > >   Best Regards,
> > > >
> > > > He Jibo
> > > >  jibohe2在cyrus.psych.uiuc.edu
> > > >                           hejibo在gmail.com
> > > >
> > > >
> > > > ---------------------------
> > > > He Jibo
> > > > Department of Psychology,
> > > > Beckman Institute for Advanced Science and Technology
> > > > University of Illinois, Urbana Champaign,
> > > > 603 East Daniel St.,
> > > > Champaign, IL 61820
> > > > Tel: 217-244-4461(office)
> > > >       217-244-6763(lab)
> > > > Email: hejibo在gmail.com
> > > >
> > > > _______________________________________________
> > > > python-chinese
> > > > Post: send python-chinese在lists.python.cn
> > > > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > > > Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> > > > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> > > >
> > >
> > >
> > > _______________________________________________
> > > python-chinese
> > > Post: send python-chinese在lists.python.cn
> > > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > > Unsubscribe: send unsubscribe to
> > > python-chinese-request在lists.python.cn
> > > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> > >
> >
> >
> >
> > --
> >   Best Regards,
> >
> > He Jibo
> >  jibohe2在cyrus.psych.uiuc.edu
> >                           hejibo在gmail.com
> >
> >
> > ---------------------------
> > He Jibo
> > Department of Psychology,
> > Beckman Institute for Advanced Science and Technology
> > University of Illinois, Urbana Champaign,
> > 603 East Daniel St.,
> > Champaign, IL 61820
> > Tel: 217-244-4461(office)
> >       217-244-6763(lab)
> > Email: hejibo在gmail.com
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> >
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>



-- 
  Best Regards,

He Jibo
jibohe2在cyrus.psych.uiuc.edu
                          hejibo在gmail.com


---------------------------
He Jibo
Department of Psychology,
Beckman Institute for Advanced Science and Technology
University of Illinois, Urbana Champaign,
603 East Daniel St.,
Champaign, IL 61820
Tel: 217-244-4461(office)
      217-244-6763(lab)
Email: hejibo在gmail.com
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20080228/9456acb0/attachment-0001.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2024

    京ICP备05028076号