如何使用 imacros 提取 UID facebook
how to extract UID facebook using imacros
我有这样的查询:
<a href="https://www.facebook.com/marsfam.masakan?fref=gm&hc_location=group_member_profile" data-hovercard="/ajax/hovercard/user.php?id=100021477465459&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>
如何使用 macros 提取 100021477465459
我使用这个标签 pos 但仍然错误
TAG POS={{!LOOP}} TYPE=A ATTR=HREF:/?fref=pb EXTRACT=HREF
试试下面的代码:
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}}
我有这样的查询:
<a href="https://www.facebook.com/marsfam.masakan?fref=gm&hc_location=group_member_profile" data-hovercard="/ajax/hovercard/user.php?id=100021477465459&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>
如何使用 macros 提取 100021477465459
我使用这个标签 pos 但仍然错误
TAG POS={{!LOOP}} TYPE=A ATTR=HREF:/?fref=pb EXTRACT=HREF
试试下面的代码:
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}}