如何使用imacros提取UID facebook

时间:2017-08-15 23:01:27

标签: 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>

如何使用imacros

提取100021477465459

我使用此标签pos但仍然是错误

TAG POS = {{!LOOP}} TYPE = A ATTR = HREF: / ?fref = pb EXTRACT = HREF

1 个答案:

答案 0 :(得分: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}}