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

如何抓取, 复制复合 Emoji 的问题?

  •  
  •   woshichuanqilz · Feb 2, 2020 · 3111 views
    This topic created in 2436 days ago, the information mentioned may be changed or developed.

    我尝试用爬虫抓取一些 Emoji 的时候, 单字符的 Emoji 抓取是正常的,

    但是我发现有一些表情符号是由多个小的表情符号组成的, 比如: https://emojipedia.org/search/?q=love 这个链接下的

    如果用爬虫抓取这个表情得到了文本是: "👩\u200d❤️\u200d👩"

    这样的文本直接复制粘贴是有问题的。 所以我想请问一下,如果遇到这种符合的表情符号应该怎么才能正确的抓取? 怎么才能像网页那样正确的复制?

    1 replies  •  2020-02-02 22:44:08 +08:00
    712e1959
        1
    712e1959  
       Feb 2, 2020 via Android
    zero-width joiner
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2256 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 11:37 · PVG 19:37 · LAX 04:37 · JFK 07:37
    ♥ Do have faith in what you're doing.