2017-08-15 58 views
-3

提取UID Facebook的,我有這樣的查詢:如何使用iMacros的

<a href="https://www.facebook.com/marsfam.masakan?fref=gm&amp;hc_location=group_member_profile" data-hovercard="/ajax/hovercard/user.php?id=100021477465459&amp;extragetparams=%7B%22fref%22%3A%22gm%22%2C%22directed_target_id%22%3A361041810716193%2C%22hc_location%22%3A%22group_member_profile%22%7D" data-hovercard-prefer-more-content-show="1" aria-controls="js_ks" aria-haspopup="true" aria-describedby="js_kt" id="js_ku">Dapur Marsfam</a> 

如何提取100021477465459使用iMacros的

我用這個標籤POS但仍錯誤

TAG POS = {{ !LOOP}} TYPE = A = ATTR HREF:/ f參考= PB = EXTRACT HREF

回答

0

試試下面的代碼:

TAG POS={{!LOOP}} TYPE=A ATTR=data-hovercard:/ajax/hovercard/user.php?id=* EXTRACT=HTM 
SET UID EVAL("'{{!EXTRACT}}'.match(/\/ajax\/hovercard\/user\.php\?id=(\d+)/)[1];") 
PROMPT {{UID}}