闲来无事,用抓包工具对葫芦侠美腿板块的模板进行抓包,满足大家日常所需,嘿嘿

下面是我抓的接口

接口名称 请求方法 请求链接 返回类型
葫芦侠美腿板块 GET http://floor.huluxia.com/post/list/ANDROID/2.1?platform=2&gkey=000000&app_version=4.0.0.5.1&versioncode=20141428&market_id=floor_tencent&_key=A86D9AE2A397358D5417BE900DE22BFAF8E3DA4A3320DA9358F7D909F2F9B139215383385231A33E092E2D5FDDE85DDA78DA45F3E0D52E37&device_code=%5Bw%5D02%3A00%3A00%3A00%3A00%3A00%5Bd%5Dfaf53c2b-e049-4182-9ef8-f056c635a50b&start=0&count=20&cat_id=56&tag_id=5601&sort_by=0 json

用python对图片数据进行提取

import requests
import random

list = []
a = requests.get(
    'http://floor.huluxia.com/post/list/ANDROID/2.1?platform=2&gkey=000000&app_version=4.0.0.5.1&versioncode=20141428&market_id=floor_tencent&_key=A86D9AE2A397358D5417BE900DE22BFAF8E3DA4A3320DA9358F7D909F2F9B139215383385231A33E092E2D5FDDE85DDA78DA45F3E0D52E37&device_code=%5Bw%5D02%3A00%3A00%3A00%3A00%3A00%5Bd%5Dfaf53c2b-e049-4182-9ef8-f056c635a50b&start=0&count=20&cat_id=56&tag_id=5601&sort_by=0')
b = a.json()
c = b['posts']
print(a.json())
i = 0
for name in c:
    d = name['images']
    e = name['title']
    for jpg in d:
        # print(e)
        print(jpg)

 

© 版权声明
评论 抢沙发