V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
forget166
V2EX  ›  2018

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

  •  
  •   forget166 · Aug 8, 2018 · 3897 views
    This topic created in 2828 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   ·   976 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 22:29 · PVG 06:29 · LAX 15:29 · JFK 18:29
    ♥ Do have faith in what you're doing.