liuzheng / weibo Goto Github PK
View Code? Open in Web Editor NEW新浪weibo微博抓取,Python3 support
License: Apache License 2.0
新浪weibo微博抓取,Python3 support
License: Apache License 2.0
这个是我用模拟方式获取到的req_login数据
<html>
<head>
<title>����ͨ��֤</title>
<meta http-equiv="refresh" content="0; url='http://weibo.com/ajaxlogin.php?framelogin=1&callback=parent.sinaSSOController.feedBackUrlCallBack&retcode=4049&reason=%CE%AA%C1%CB%C4%FA%B5%C4%D5%CA%BA%C5%B0%B2%C8%AB%A3%AC%C7%EB%CA%E4%C8%EB%D1%E9%D6%A4%C2%EB'"/>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000cc" vlink="#551a8b" alink="#ff0000">
<script type="text/javascript" language="javascript">
location.replace("http://weibo.com/ajaxlogin.php?framelogin=1&callback=parent.sinaSSOController.feedBackUrlCallBack&retcode=4049&reason=%CE%AA%C1%CB%C4%FA%B5%C4%D5%CA%BA%C5%B0%B2%C8%AB%A3%AC%C7%EB%CA%E4%C8%EB%D1%E9%D6%A4%C2%EB");
</script>
</body>
</html>
这个是报错内容
Traceback (most recent call last):
File "example.py", line 24, in
simuLogin()
File "example.py", line 19, in simuLogin
simu = Lweibo.simu()
File "/home/masong/Coding/weibo/Lweibo.py", line 420, in init
self.simu = weibo_login(username, pwd)
File "/home/masong/Coding/weibo/Lweibo.py", line 163, in init
self.login(username, pwd, cookie_file)
File "/home/masong/Coding/weibo/Lweibo.py", line 221, in login
return self.do_login(username, pwd, cookie_file)
File "/home/masong/Coding/weibo/Lweibo.py", line 288, in do_login
login_url = p.search(text).group(1)
AttributeError: 'NoneType' object has no attribute 'group'
比较奇怪的是,我昨天晚上登陆还一直很正常,今天打开就出错了。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.