forget166
V2EX  ›  2018

新手求助! Python 爬取网页获取 js 里的变量

  •  
  •   forget166 · Aug 8, 2018 · 3975 views
    This topic created in 2868 days ago, the information mentioned may be changed or developed.
    <script> var g_config = { startTime : +new Date, ver : '7.19.6', st : '', online : true, shopVer : 2, appId : 1 , itemId : '572439668018', shopId : '103944295', shopName : '\u7F8E\u7F8E\u5927\u7801\u670D\u9970', sellerId : '1669425566', sellerNick : '美美服饰女装', sibUrl : }; 爬取淘宝商品详情页,如何获得店名?就是 shopName : '\u7F8E\u7F8E\u5927\u7801\u670D\u9970',这一块的值?请问正则表达式怎么写?急急急! </script>
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3728 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 05:04 · PVG 13:04 · LAX 22:04 · JFK 01:04
    ♥ Do have faith in what you're doing.