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
julf
V2EX  ›  Python

有个小型项目求指点或者接活

  •  
  •   julf · 2017-01-27 13:22:07 +08:00 · 3147 次点击
    这是一个创建于 2644 天前的主题,其中的信息可能已经有所发展或是发生改变。
    https://coinmarketcap.com/ ,这个网站是一个虚拟货币的统计网站,我想通过 python 每天抓取排名前一百位的品种数据,市值变化成交量变化,特别是 24 小时成交量数据,并能每天生成数据统计图表,这个靠 python 能实现吗?这个项目比较小型,如果有人能接活的麻烦联系一下
    11 条回复    2017-01-30 09:47:57 +08:00
    mutelog
        1
    mutelog  
       2017-01-27 13:28:40 +08:00
    抓取可以实现,不知想要实现什么样的统计图表呢,另外报价如何?
    jswh
        2
    jswh  
       2017-01-27 13:53:54 +08:00
    var allItems = []
    $('#currencies tbody tr').each(function(id, item) {
    var oneItem = []
    $(item).find('td').each(function (id, td) {
    switch(id) {
    case 1 :
    oneItem.push($(td).find('a').text().replace(/\s+/g, ''))
    break;
    default:
    oneItem.push($(td).text().replace(/\s+/g, ''))
    }
    })
    allItems.push(oneItem.join('|'))
    })
    console.log(allItems.join('\n'))

    随便写了一个,在 console 里跑吧,跑出来的结果导入到保存成 csv , 导入 Excel ,想怎么搞怎么搞。

    https://gist.github.com/jswh/9f33648fe78de37a1ce1066988518488/revisions
    julf
        3
    julf  
    OP
       2017-01-27 13:56:22 +08:00
    @mutelog ,能实现每个品种每天生成柱状图即可,主要是想看资金流入流出情况
    julf
        4
    julf  
    OP
       2017-01-27 13:56:47 +08:00
    @jswh 感谢,我跑跑看
    jswh
        5
    jswh  
       2017-01-27 13:59:20 +08:00
    @julf 要是 gist 能贴打赏二维码就好了, 233333
    julf
        6
    julf  
    OP
       2017-01-27 14:13:43 +08:00
    想要实现的就是类似百度 echart,http://echarts.baidu.com/demo.html#bar-tick-align 这样的效果就可以,数据最好每天自己抓取,减少人为操作的环节
    julf
        7
    julf  
    OP
       2017-01-27 14:14:08 +08:00
    @mutelog 报价可以私信我,谢谢
    gdtv
        8
    gdtv  
       2017-01-27 14:24:33 +08:00 via Android
    @julf V2EX 没有私信功能
    julf
        9
    julf  
    OP
       2017-01-27 14:29:02 +08:00
    @gdtv @mutelog ,可以联系我 weixin@eric606
    mutelog
        10
    mutelog  
       2017-01-27 14:31:01 +08:00
    @julf 感兴趣的话可以加微信详聊,微信号同 v2 ID
    justtery
        11
    justtery  
       2017-01-30 09:47:57 +08:00 via Android
    这个可以啊,免费的要不要。。这样做我只能用 flask+echarts
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3493 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 10:54 · PVG 18:54 · LAX 03:54 · JFK 06:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.