V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
tanteng
V2EX  ›  Python

关于 Python 抓取

  •  
  •   tanteng ·
    tanteng · 2015-07-11 13:29:02 +08:00 · 1670 次点击
    这是一个创建于 3233 天前的主题,其中的信息可能已经有所发展或是发生改变。
    关于Python抓取,看我的理解对不对,抓取是根据数据库表结构,去网上抓取页面,把信息转换成对应的字段的格式,然后一条条插入到数据表中吗?
    ksupertu
        1
    ksupertu  
       2015-07-12 22:12:07 +08:00
    可以自定义插入,也可以用业界已有的轮子pyspider或者scrapy,前者存储是把抓取的内容整个打包了一个json文件后存入了数据库字段里,你可以读出来后任意自己处理,或者自己改轮子完成自己喜欢的插入工作
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5391 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 05:45 · PVG 13:45 · LAX 22:45 · JFK 01:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.