Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
urllib怎么处理跳转的网页?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Xian Chen  
View profile   Translate to Translated (View Original)
 More options Jul 2, 2:34 pm
From: Xian Chen <hoganx...@gmail.com>
Date: Thu, 2 Jul 2009 14:34:51 -0400
Local: Thurs, Jul 2 2009 2:34 pm
Subject: urllib怎么处理跳转的网页?

一个网页打开之后, 1秒后跳转到别的地址, 这种情况下urllib怎么抓取新的地址呢?
thanks


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
YoungKing  
View profile   Translate to Translated (View Original)
 More options Jul 2, 9:38 pm
From: YoungKing <yanc...@gmail.com>
Date: Fri, 3 Jul 2009 09:38:31 +0800
Local: Thurs, Jul 2 2009 9:38 pm
Subject: Re: [CPyUG:91203] urllib怎么处理跳转的网页?

urllib不能处理跳转,用urllib2

2009/7/3 Xian Chen <hoganx...@gmail.com>

> 一个网页打开之后, 1秒后跳转到别的地址, 这种情况下urllib怎么抓取新的地址呢?
> thanks

--
IRC:#python...@freenode.net |邮件列表:
https://groups.google.com/group/python-cn| 论坛:
http://forum.python.cn/ |昨夜布谷忽失声,今朝惊觉满城春|我不同意你的观点,但我誓死捍卫你说话的权利

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
shell909090  
View profile   Translate to Translated (View Original)
 More options Jul 2, 9:42 pm
From: shell909090 <shell909...@gmail.com>
Date: Fri, 03 Jul 2009 09:42:26 +0800
Local: Thurs, Jul 2 2009 9:42 pm
Subject: Re: [CPyUG:91203] urllib怎么处理跳转的网页?
Xian Chen 写道:
> 一个网页打开之后, 1秒后跳转到别的地址, 这种情况下urllib怎么抓取新的地址呢?
> thanks

转跳有两种实现方式,分别是http转跳和js转跳。http转跳是使用
HttpResponesCode来做的,要延时转跳多数是js转跳。这时候需要你有套js引擎来
分析整个过程,获得1秒后转跳的这个url。然后再抓。
最简单的方式是利用浏览器操作接口来干这个事情,否则的话,研究一下for
python的js引擎吧,会累死的。

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
@@  
View profile   Translate to Translated (View Original)
 More options Jul 2, 9:42 pm
From: "@@" <ask...@gmail.com>
Date: Fri, 3 Jul 2009 09:42:45 +0800
Local: Thurs, Jul 2 2009 9:42 pm
Subject: Re: [CPyUG:91214] Re: urllib怎么处理跳转的网页?

他说的跳转不是30x吧

2009/7/3 YoungKing <yanc...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
五湖闲人  
View profile   Translate to Translated (View Original)
 More options Jul 2, 9:50 pm
From: 五湖闲人 <dawnsum...@gmail.com>
Date: Thu, 2 Jul 2009 18:50:31 -0700 (PDT)
Local: Thurs, Jul 2 2009 9:50 pm
Subject: Re: urllib怎么处理跳转的网页?
response.geturl()

On 7月3日, 上午2时34分, Xian Chen <hoganx...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Xian Chen  
View profile   Translate to Translated (View Original)
 More options Jul 3, 8:14 am
From: Xian Chen <hoganx...@gmail.com>
Date: Fri, 3 Jul 2009 08:14:18 -0400
Local: Fri, Jul 3 2009 8:14 am
Subject: Re: [CPyUG:91216] Re: urllib怎么处理跳转的网页?

就是js处理的跳转, js自动生成url, 然后跳转。。。

麻烦死了,怎么处理呢?

2009/7/2 shell909090 <shell909...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "urllib怎么处理跳转的网??" by shell909090
shell909090  
View profile   Translate to Translated (View Original)
 More options Jul 3, 10:21 am
From: shell909090 <shell909...@gmail.com>
Date: Fri, 03 Jul 2009 22:21:09 +0800
Local: Fri, Jul 3 2009 10:21 am
Subject: Re: [CPyUG:91272] Re: urllib怎么处理跳转的网??
Xian Chen 写道:

不怕花内存就用浏览器接口吧,怕花内存问问mozilla的js引擎开源不开源。

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google