# coding:utf-8
import re
import requests
lists=[]
def faobao_post(Title,PageSize,PageIndex):#标题,数量,页码passurl='http://gzlx.pkulaw.cn/case/Search/Record's=requests.Session()s.headers={'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0'}s.headers['Cookie']='Encoding=true; ASP.NET_SessionId=cokxgnba0dgxwqyni21xn4hj; Hm_lvt_88ee33b1d29df4485bc5b7340e944f8f=1558229953; FWinCookie=1; Hm_lvt_b196e3c9d71b8c7dfa4d1d668cee40f0=1558229982; Hm_lpvt_b196e3c9d71b8c7dfa4d1d668cee40f0=1558229982; verify_code=2201; CookieId=; CookieId=cokxgnba0dgxwqyni21xn4hj; Catalog_Search=article_ctitle%3d%25%e6%94%bb%e5%87%bb%25; Hm_lpvt_88ee33b1d29df4485bc5b7340e944f8f=1558232643; bdyh_record=1970324901429167%2C1970324901429169%2C1970324904312067%2C1970324905695111%2C1970324848373893%2C1970324905695537%2C1970324901429168%2C1970324848373860%2C's.headers['Content-Type']='application/x-www-form-urlencoded; charset=UTF-8's.headers['Host']='gzlx.pkulaw.cn's.headers['Referer']='http://gzlx.pkulaw.cn/case/adv'#'http://gzlx.pkulaw.cn/case/gzlx?Keywords=%u6848%u4F8B'data='''Menu=CASE&IsFullTextSearch=False&MatchType=Exact&Keywords=&IsAdv=True&AdvTitleMatchType=Exact&AdvFullTextMatchType=Exact&AdvSearchDic.Title='''+Title+'''&AdvSearchDic.FullText=&AdvSearchDic.Category=&AdvSearchDic.CaseFlag=&AdvSearchDic.LastInstanceCourt=02,&AdvSearchDic.CourtGrade=&AdvSearchDic.Judge=&AdvSearchDic.Agent=&AdvSearchDic.TrialStep=&AdvSearchDic.DocumentAttr=001&AdvSearchDic.TrialStepCount=&AdvSearchDic.LastInstanceDate={"Start":"","End":""}&AdvSearchDic.Core=&AdvSearchDic.DisputedIssues=&AdvSearchDic.CaseGist=&AdvSearchDic.CaseGrade=&AdvSearchDic.CriminalPunish=&AdvSearchDic.Accusation=&AdvSearchDic.Criminal=&AdvSearchDic.CivilLaw=&AdvSearchDic.CaseGistMark=&AdvSearchDic.GuidingCase=&AdvSearchDic.GuidingCaseNO=&AdvSearchDic.GuidingCaseDoc=&AdvSearchDic.IssueDate={"Start":"","End":""}&AdvSearchDic.ForeignCase=&OrderByIndex=0&GroupByIndex=0&ShowType=1&ClassCodeKey=,,+&OrderByIndex=0&GroupByIndex=0&ShowType=1&ClassCodeKey=,,+&Library=PFNL&SubKeyword=在结果的标题中检索&GroupIndex=&GroupValue=&TitleKeywords=&FullTextKeywords=&Pager.PageSize='''+str(PageSize)+'''&Pager.PageIndex='''+str(PageIndex)+'''&X-Requested-With=XMLHttpRequest'''data=data.replace("\n","")html=s.post(url=url,data=data.encode('utf-8')).content.decode('utf-8')urllist =re.findall(r"(?<=href=\").+?(?=\")|(?<=href=\').+?(?=\')" ,html)for url in urllist:if '.html?keywords=' in url:url='http://gzlx.pkulaw.cn'+urllists.append(url)print ( url)faobao_post('离婚',3000,2)#'''+Title+'''
##<table class="articleInfo" width="100%;" cellpadding="0" cellspacing="0"><tbody><tr>                            <td valign="top" width="18%" class="noBorder"><strong>【案由】</strong></td>
##                            <td valign="top" class="noBorder" colspan="3">
##<a target="_blank" href="/case/adv/pfnl?AdvSearchDic.Category=002" cluster_code="002">民事</a><i class="c-icon"></i><a target="_blank" href="/case/adv/pfnl?AdvSearchDic.Category=00202" cluster_code="00202">婚姻家庭、继承纠纷</a><i class="c-icon"></i><a target="_blank" href="/case/adv/pfnl?AdvSearchDic.Category=0020201" cluster_code="0020201">婚姻家庭纠纷</a><i class="c-icon"></i><a target="_blank" href="/case/adv/pfnl?AdvSearchDic.Category=002020103" cluster_code="002020103">离婚后财产纠纷</a><span οnclick="Open_AnyouShiyi_win('002020103');">[案由释义]</span><br>
##                            </td>
##</tr><tr>                                <td valign="top" width="18%" class=""><strong>【案件字号】</strong></td>
##                                <td width="32%" class="">(2019)京0112民初20068号</td>
##                                <td valign="top" width="18%" class=""><strong>【审理法官】</strong></td>
##                                <td width="32%" class=""><a target="_blank" href="/case/adv/pfnl?AdvSearchDic.Judge=%E5%BC%A0%E7%87%95">张燕</a></td>
##</tr><tr>                                <td valign="top" width="18%" class=""><strong>【文书类型】</strong></td>
##                                <td width="32%" class=""><a target="_blank" href="/case/adv/pfnl?AdvSearchDic.DocumentAttr=001">判决书</a></td>
##                                <td valign="top" width="18%" class=""><strong>【审结日期】</strong></td>
##                                <td width="32%" class="">2019.08.30</td>
##</tr><tr style="display: table-row;">                                <td valign="top" width="18%" class=""><strong>【审理法院】</strong></td>
##                                <td width="32%" class=""><a target="_blank" href="/case/adv/pfnl?AdvSearchDic.LastInstanceCourt=020503">北京市通州区人民法院</a></td>
##                                <td valign="top" width="18%" class=""><strong>【审理程序】</strong></td>
##                                <td width="32%" class=""><a target="_blank" href="/case/adv/pfnl?AdvSearchDic.TrialStep=001">一审</a></td>
##</tr><tr style="display: table-row;">                                <td valign="top" width="18%" class=""><strong>【代理律师/律所】</strong></td>
##                                <td valign="top" class="" colspan="3"><a target="_blank" href="/case/adv/pfnl?AdvSearchDic.Agent=%E6%9F%B4%E5%8D%8E%E5%A8%9F">柴华娟,</a><a target="_blank" href="/case/adv/pfnl?AdvSearchDic.Agent=%E5%8C%97%E4%BA%AC%E4%BC%9F%E5%9F%BA%E5%BE%8B%E5%B8%88%E4%BA%8B%E5%8A%A1%E6%89%80">北京伟基律师事务所; </a><a target="_blank" href="/case/adv/pfnl?AdvSearchDic.Agent=%E5%88%98%E6%98%8E%E5%BF%97">刘明志,</a><a target="_blank" href="/case/adv/pfnl?AdvSearchDic.Agent=%E5%8C%97%E4%BA%AC%E4%BC%9F%E5%9F%BA%E5%BE%8B%E5%B8%88%E4%BA%8B%E5%8A%A1%E6%89%80">北京伟基律师事务所; </a><a target="_blank" href="/case/adv/pfnl?AdvSearchDic.Agent=%E5%88%98%E6%98%B1">刘昱,</a><a target="_blank" href="/case/adv/pfnl?AdvSearchDic.Agent=%E6%B9%96%E5%8D%97%E5%BC%98%E4%B8%80%E5%BE%8B%E5%B8%88%E4%BA%8B%E5%8A%A1%E6%89%80">湖南弘一律师事务所; </a></td>
##</tr><tr style="display: table-row;">                                <td valign="top" width="18%" class=""><strong>【权责关键词】</strong></td>
##                                <td valign="top" class="" colspan="3"><a target="_blank" href="/case/adv/pfnl?AdvSearchDic.CriminalPunish=010103">代理</a>&nbsp;&nbsp;<a target="_blank" href="/case/adv/pfnl?AdvSearchDic.CriminalPunish=01010501">合同</a>&nbsp;&nbsp;<a target="_blank" href="/case/adv/pfnl?AdvSearchDic.CriminalPunish=0102050101">当事人的陈述</a>&nbsp;&nbsp;<a target="_blank" href="/case/adv/pfnl?AdvSearchDic.CriminalPunish=01020503">证明</a>&nbsp;&nbsp;<a target="_blank" href="/case/adv/pfnl?AdvSearchDic.CriminalPunish=01020701">诉讼请求</a>&nbsp;&nbsp;<a target="_blank" href="/case/adv/pfnl?AdvSearchDic.CriminalPunish=01020709">简易程序</a>&nbsp;&nbsp;<a target="_blank" href="/case/adv/pfnl?AdvSearchDic.CriminalPunish=01020818">清算</a>&nbsp;&nbsp;<a target="_blank" href="/case/adv/pfnl?AdvSearchDic.CriminalPunish=01020918">折价</a>&nbsp;&nbsp;</td>
##</tr><tr style="display: table-row;"></tr><tr style="display: table-row;"></tr></tbody></table>

faobao_post相关推荐

最新文章

  1. 匹夫细说C#:委托的简化语法,聊聊匿名方法和闭包
  2. Tomcat工作原理
  3. (七十)Xcode5及以上对于状态栏和导航栏样式的设定方法
  4. 一分钟理解softmax函数(超简单)
  5. js移除某个class_用JS添加和删除class类名
  6. PHP俄罗斯方块游戏代码,俄罗斯方块游戏,俄罗斯方块游戏编程代码
  7. Choco安装npm
  8. 利用神经网络逼近sin(x)函数
  9. 133.Python修炼之路【138-前端-JQuery-Json】2018.08.02
  10. POI 操作word
  11. ps4绝地求生服务器维护,绝地求生官方更新公告 无停机维护公告
  12. 如何入驻832优选平台
  13. Google确认Chrome存在严重漏洞,向20亿用户发出警告:你们需立即更新浏览器
  14. 双击打开.bat文件闪退
  15. Spring WebFlux框架概述
  16. python 日期格式只取年月_python如何只获取日期
  17. 【wrodpress】wordpress发表文章后无法显示
  18. 鸿蒙系统为什么能用太极框架,玩机福音:华为 EMUI 升级鸿蒙之后依然可使用太极运行 Xposed...
  19. 学生宿舍管理系统 完成总结
  20. 股票数据 mysql_获取股票数据(历史数据,Python + MySQL)

热门文章

  1. USB扫码枪二维码读取(一)——U3D篇
  2. Android开发:WGS-84、GCJ02坐标名词解释及坐标转换
  3. webpack 处理es6转es5需要使用babel-loader
  4. 2019计算机二级资料/计算机二级C语言/计算机二级Office/C++/Access/VB资料真题
  5. 网络工程师--网络规划和设计案例分析(7)
  6. 适用于 Linux 桌面的 7 大白板应用程序
  7. 一起用Go做一个小游戏(下)
  8. Ubuntu上安装CERN开发的ROOT软件
  9. 台湾燃太TN905/TN901模块的使用及驱动程序
  10. 中标麒麟6安装Qt 4.8.4+QtCreator 2.7.0 NeoKylin Linux Desktop Release 6+Qt4.8.4+QtCreator2.7.0