推荐学习书目
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
0littleboy
V2EX  ›  Python

如何爬取 leetcode 上的所有历史竞赛分数数据?

  •  
  •   0littleboy · Dec 15, 2022 · 2783 views
    This topic created in 1252 days ago, the information mentioned may be changed or developed.

    https://leetcode.cn/u/johnkram/ 为例

    zoGvLD.png

    内部内容是以 svg 图的形式呈现的,那如何使用 Python 爬虫爬取所有的历史数据呢

    zoJkSP.png

    通过 network 可以看到访问了一些东西,我不知道如何提取他们

    3 replies    2022-12-16 11:07:25 +08:00
    czgaotian
        1
    czgaotian  
       Dec 15, 2022
    leetcode api 都是 graphql 的呀
    darkengine
        2
    darkengine  
       Dec 15, 2022
    搜索 leetcode graphql
    liutao1998
        3
    liutao1998  
       Dec 16, 2022
    https://github.com/xjq7/lc-helper, 参考我做的 力扣辅助工具, 本质还是 http, 入参 抓包看看就知道了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1203 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 23:30 · PVG 07:30 · LAX 16:30 · JFK 19:30
    ♥ Do have faith in what you're doing.