搜索
查看: 531|回复: 2

花田批量勾搭妹纸神器

[复制链接]

1839

主题

2255

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
11913
发表于 2014-1-30 15:45:28 来自手机 | 显示全部楼层 |阅读模式
自己定义妹子所在区域 自己定义cookie
自己改改自己用吧

  1. #!/usr/bin/env python   
  2. # -*- coding: utf-8 -*-   
  3. #code by ha.cker
  4. import httplib
  5. import urllib
  6. import re
  7. import string

  8. search="province=1&city=0&age=24-25&birthProvince=1&birthCity=0&condition=1&pageNo="
  9. msg="content=Can I fuck u?&isSetTop=0&withUserId="#def msg
  10. path_s="/search/user/list"
  11. path_m="/messages/add"

  12. def sendhttp(data,path):
  13.     path=path
  14.     data=data
  15.     cookie = ''
  16.     headers = {"User-agent":"Mozilla/5.0 (Windows; U; Windows NT 6.0;en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6)",
  17.        "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
  18.        "Connection": "closed",
  19.        "Cookie": cookie}
  20.     conn = httplib.HTTPConnection('love.163.com')
  21.     conn.request('POST', path, data, headers)
  22.     result = conn.getresponse().read()
  23.     return result

  24. def getuid():
  25.     for i in range (0,11):
  26.       dosearch="%s%d" % (search,i)#def search key
  27.       rs = sendhttp(dosearch,path_s)
  28.       regex = re.compile('id": "(.*?\d+)')
  29.       reuid = regex.findall(rs)
  30.       for uid in reuid:
  31.       smsg = msg+uid
  32.       sendmsg = sendhttp(smsg,path_m)
  33.       print sendmsg
  34.       
  35. if __name__ == '__main__':   
  36.     getuid()
复制代码
854955425 该用户已被删除
发表于 2014-1-30 15:48:05 | 显示全部楼层
支持一下
专业回帖 该用户已被删除
发表于 2014-1-30 16:34:31 | 显示全部楼层
好好 学习了 确实不错
您需要登录后才可以回帖 登录 | Join BUC

本版积分规则

Powered by Discuz!

© 2012-2015 Baiker Union of China.

快速回复 返回顶部 返回列表