python学习--爱奇艺爬虫
来源:互联网 发布:淘宝店铺转让怎么弄 编辑:程序博客网 时间:2024/06/06 13:25
# -*- coding: UTF-8 -*-
'''
爱奇艺电影 主演和影片简介 爬虫
'''
import re
import urllib2
import json
url = 'https://v.qq.com/x/cover/fse52rd4klx7qn2.html'
text = urllib2.urlopen(url).read()
title = re.findall('<title>(.+?)_电影',text)
name = re.findall('leading_actor":\[(.+?)\],"vip',text)
content = re.findall('description":"(.+?)","cover_id',text)
for i in title:
print ' 剧名:', i
for i in name:
print ' 主演:',i.replace('"','').replace(',','')
for i in content:
print ' 简介:',i
阅读全文
0 0
- python学习--爱奇艺爬虫
- 学习python爬虫
- python 爬虫学习一
- Python爬虫学习
- Python爬虫学习
- python爬虫学习
- Python学习--爬虫
- python学习爬虫
- Python 爬虫学习1
- Python 爬虫学习2
- python简单爬虫学习
- Python简单爬虫学习
- Python爬虫学习系列
- python + 机器学习 + 爬虫
- python 爬虫 学习
- python爬虫基础学习
- Python爬虫学习总结
- Python爬虫学习
- SQL数据库语言总结及代码示例
- 杭电acm 1671Phone List(字典树)
- Linux系统启动过程
- 第一篇:JAVA网络编程之TCP Socket(含代码)
- android属性动画
- python学习--爱奇艺爬虫
- 国税系统项目总结(SSH)
- Movie Studio项目属性设置(二)
- Android详解图片压缩问题
- Android 圆形头像+渐变+白框
- 怎么在oracle数据库创建用户,并赋权限
- ResponseUtil
- 希尔排序和快速排序
- tlb、tlh和tli文件的关系