Created
June 20, 2013 11:16
-
-
Save hupili/5821944 to your computer and use it in GitHub Desktop.
Parse sina UIDs from image link and generate a batch follow link.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
template="http://widget.weibo.com/relationship/bulkfollow.php?language=zh_cn&uids=" | |
uids=`curl -s $1 | grep -oP '(?<=http://...\.sinaimg.cn/)\d*(?=/)' | xargs echo -n | tr ' ' ','` | |
url="$template$uids" | |
echo $url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
./get-follow-link.sh {URL}
It seems this method does not prompt captcha. We can use it for batch following.
The current limit is 20.
We need to divide the UIDs into several groups, each 20 users.