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

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

  •  
  •   woshichuanqilz · 2020-02-02 22:03:59 +08:00 · 2318 次点击
    这是一个创建于 1538 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

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

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

    1 条回复    2020-02-02 22:44:08 +08:00
    712e1959
        1
    712e1959  
       2020-02-02 22:44:08 +08:00 via Android
    zero-width joiner
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1109 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 23:33 · PVG 07:33 · LAX 16:33 · JFK 19:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.