葫芦侠接口分享
- 前言
- ----
- 最快获得经验方法
- 登入接口
- 签到接口
- 仿登入接口
- ----
- 帖子获取/操作
- 帖子
- 帖子操作-评论
- 帖子操作-点赞
- 帖子操作-第三方应用分享
- ----
- 爬虫接口
- 爬板块ID接口
- 爬板块名称接口
- 总结
前言
接口由By伍少分享 仅供学习 请勿用作违法用途!
----
最快获得经验方法
登入接口
shell代码如下
jg=$(curl -X POST -H "Connection:" -H "Host:floor.huluxia.com" -H "User-Agent:" -H "Content-Type:application/x-www-form-urlencoded" -H "Content-Length:74" -H "Accept-Encoding:gzip" -d ""account="这里是账号"&login_type=2&password="这里是密码 需要md5小写加密" "http://floor.huluxia.com/account/login/ANDROID/4.0?platform=2&gkey=000000&app_version=4.1.1.4.2&versioncode=326&market_id=tool_xiaomi&_key=&device_code=&phone_brand_type=")
签到接口
http://floor.huluxia.com/user/signin/ANDROID/4.0?platform=2&gkey=000000&app_version=4.1.0.6&versioncode=20141455&market_id=floor_web&_key=写key&device_code=1&phone_brand_type=MI&cat_id=板块id
仿登入接口
curl -X GET -H "Connection:close" -H "Host:floor.huluxia.com" -H "Accept-Encoding:gzip" -H "User-Agent:okhttp/3.8.1" "http://floor.huluxia.com/message/new/count/ANDROID/4.1?platform=2&gkey=000000&app_version=4.1.0.6&versioncode=20141455&market_id=floor_xiaomi&_key=这里写key&device_code=%5Bd%5D8f4a9f9a-2a35-414b-98a1-4719012f3659&phone_brand_type=MI"
----
帖子获取/操作
帖子
这个是获取帖子 里面有id和标题及内容 通过截取可以拿到id进行以下功能
http://floor.huluxia.com/category/list/ANDROID/2.0
帖子操作-评论
curl -X POST -H "Connection:close" -H "Content-Type:application/x-www-form-urlencoded" -H "Content-Length:85" -H "Host:floor.huluxia.com" -H "Accept-Encoding:gzip" -H "User-Agent:okhttp/3.8.1" -d "post_id=这里是帖子id&comment_id=0&text=(这里是评论的文字需要url编码 我这是滑稽666的编码)%5B%E6%BB%91%E7%A8%BD%5D666&patcha=&images=&remindUsers=" "http://floor.huluxia.com/comment/create/ANDROID/2.0?platform=2&gkey=000000&app_version=4.1.0.6&versioncode=20141455&market_id=floor_web&_key=写key&device_code=%5Bd%5D44038997-3ca3-4f03-b7d3-5ae73c8ecd9f&phone_brand_type=MI"
帖子操作-点赞
curl -X GET -H "Connection:close" -H "Host:floor.huluxia.com" -H "Accept-Encoding:gzip" -H "User-Agent:okhttp/3.8.1" "http://floor.huluxia.com/post/praise/ANDROID/2.1?platform=2&gkey=000000&app_version=4.1.0.6&versioncode=20141455&market_id=floor_web&_key=这里key&device_code=%5Bd%5D44038997-3ca3-4f03-b7d3-5ae73c8ecd9f&phone_brand_type=MI&post_id=帖子id"
帖子操作-第三方应用分享
curl -X GET -H "Connection:close" -H "Host:floor.huluxia.com" -H "Accept-Encoding:gzip" -H "User-Agent:okhttp/3.8.1" "http://floor.huluxia.com/user/share/callback/ANDROID/2.2?platform=2&gkey=000000&app_version=4.1.0.6&versioncode=20141455&market_id=floor_web&_key=这里key&device_code=%5Bd%5D44038997-3ca3-4f03-b7d3-5ae73c8ecd9f&phone_brand_type=MI&share_type=1&share_id=这里是帖子id"
----
爬虫接口
爬板块ID接口
curl -X GET -H "Connection:close" -H "Host:floor.huluxia.com" -H "Accept-Encoding:gzip" -H "User-Agent:okhttp/3.8.1" "http://floor.huluxia.com/category/detail/ANDROID/2.0?cat_id=此处为板块id&platform=2&gkey=000000&app_version=4.1.0.8&versioncode=20141459&market_id=floor_web&_key=94CE89983ED277DC50CB94DCD8D8695BF003D50ECB8A2E36B4CD3B014A9A4C8F6A617518665F988F2F5A21A2F5D10F3B5E6FE98A87AB59BF&device_code=%5Bd%5D44038997-3ca3-4f03-b7d3-5ae73c8ecd9f&phone_brand_type=MI"shell代码示例
int=1
jg=""
js=0while (($int<200))
do
curl -X GET -H "Connection:close" -H "Host:floor.huluxia.com" -H "Accept-Encoding:gzip" -H "User-Agent:okhttp/3.8.1" "http://floor.huluxia.com/category/detail/ANDROID/2.0?cat_id="$int"&platform=2&gkey=000000&app_version=4.1.0.8&versioncode=20141459&market_id=floor_web&_key=94CE89983ED277DC50CB94DCD8D8695BF003D50ECB8A2E36B4CD3B014A9A4C8F6A617518665F988F2F5A21A2F5D10F3B5E6FE98A87AB59BF&device_code=%5Bd%5D44038997-3ca3-4f03-b7d3-5ae73c8ecd9f&phone_brand_type=MI"
if [[ $a -eq 1 ]]; then
jg="$jg""$int"" "
let "js++"
fi
let "int++"
doneecho $jg
echo $js
爬板块名称接口
http://floor.huluxia.com/category/detail/ANDROID/2.0?cat_id=板块ID&platform=2&gkey=000000&app_version=4.1.0.6&versioncode=20141455&market_id=floor_web&_key=39B60FE156AF3AF1A02148BDD2156BEAB4D9C3333B1E177217F9F4284FA0AE1AEC8A3EAF20B38A6A08152A1F855B04F975592164A5F25F8C&device_code=%5Bd%5D44038997-3ca3-4f03-b7d3-5ae73c8ecd9f&phone_brand_type=MIshell代码示例id=(1 2 3 4 6 11 15 16 21 22 23 29 34 43 44 45 56 57 58 63 68 69 70 71 76 77 81 82 88 90 92 96 98 101 102 103 105 107 108 110 111 112 113 115 116 117)
int=0
jg=""
while (($int<46))
dotid=${id[int]}url="http://floor.huluxia.com/category/detail/ANDROID/2.0?cat_id="$tid"&platform=2&gkey=000000&app_version=4.1.0.6&versioncode=20141455&market_id=floor_web&_key=39B60FE156AF3AF1A02148BDD2156BEAB4D9C3333B1E177217F9F4284FA0AE1AEC8A3EAF20B38A6A08152A1F855B04F975592164A5F25F8C&device_code=%5Bd%5D44038997-3ca3-4f03-b7d3-5ae73c8ecd9f&phone_brand_type=MI"a=$(curl -s $url)
b=${a#*title\":\"}
c=${b%%\",\"icon*}
jg="$jg""$c"" "
let "int++"
doneecho $jg#循环递归访问我们之前爬的一个id
#截取title
总结
有能力的大佬可以自行探索
若侵犯到侠聚网络权益请发送邮箱至 lh168_vx@qq.com
接口仅供学习 请勿用于非法用途或牟利当时抓包的时候也就是想偷懒 把脚本写好放在服务器跑
慢慢的就越写越完善了 哈哈
拜拜2022-2-8 6:08 By伍少