How to use div method in ng-mocks

Best JavaScript code snippet using ng-mocks

test_spider.py

Source:test_spider.py Github

copy

Full Screen

1# coding=utf-82# @Author: 莫冉3# @Date: 2021-01-204import requests5url = "https://www.kanman.com/106719/"6r = requests.get(url)7print(r.content.decode(encoding="utf-8"))8"""9<!DOCTYPE html><html lang="zh-cn"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="Content-Language" content="zh-CN"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>好想吃掉你的记忆 好想吃掉你的记忆漫画 好想吃掉你的记忆漫画全集 好想吃掉你的记忆漫画免费阅读 看漫画</title><meta name="keywords" content="好想吃掉你的记忆,好想吃掉你的记忆漫画,好想吃掉你的记忆漫画全集,好想吃掉你的记忆漫画免费阅读,看漫画"><meta name="description" itemprop="description" content="看漫画为您提供好想吃掉你的记忆,好想吃掉你的记忆漫画,好想吃掉你的记忆漫画全集,好想吃掉你的记忆漫画免费阅读,看好想吃掉你的记忆漫画就上看漫画!"><meta itemprop="name" content="上看漫画,《好想吃掉你的记忆》 让你看个过瘾哦!"><meta itemprop="image" content="https://image.yqmh.com/mh/106719.jpg"><meta name="mobile-agent" content="format=html5;url=https://m.kanman.com"><link rel="alternate" media="only screen and(max-width:640px)" href="https://m.kanman.com/106719/"><meta http-equiv="Cache-Control" content="no-siteapp"><meta http-equiv="Cache-Control" content="no-transform"><meta name="applicable-device" content="pc"><meta http-equiv="imagetoolbar" content="no"><meta name="renderer" content="webkit"><link rel="shortcut icon" href="//resource.mhxk.com/kanman_pc/static/images/favicon.ico"><meta property="og:type" content="novel"><meta property="og:title" content="好想吃掉你的记忆"><meta property="og:description" content="【独家/每周三、六更新】女主吃下神秘的记忆糖果,成功接近了暗恋的男神。在男神记忆中,看到了许多秘密和伤痛,决定帮助男主解"><meta property="og:image" content="//image.yqmh.com/mh/106719.jpg"><meta property="og:novel:category" content="社会,恋爱,生活"><meta property="og:novel:author" content="二次元动漫"><meta property="og:novel:book_name" content="好想吃掉你的记忆"><meta property="og:novel:read_url" content="https://www.kanman.com/106719/"><meta property="og:url" content="https://www.kanman.com/106719/"><meta property="og:novel:status" content="完结"><meta property="og:novel:update_time" content="2018-12-08"><meta property="og:novel:latest_chapter_name" content="最终话 哇!完全迷妹"><meta property="og:novel:latest_chapter_url" content="https://www.kanman.com/106719/19.html"><link rel="prefetch prerender" href="19.html"><script>function isMobileHanddle(){var o=navigator.userAgent;return(screen.width/screen.height<1||/AppleWebKit.*Mobile/i.test(o)||/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(o))&&!/ipad/gi.test(o)}var host=location.host;isMobileHanddle()&&"www"===host.substr(0,host.indexOf("."))&&(location.href=location.href.replace("//www.","//m.")),top.location!=location&&(top.location=location.href),window.shareConf={title:"上看漫画,《好想吃掉你的记忆》 让你看个过瘾哦!",summary:"这里有最新最全的火爆热门新番, 快来看漫画吧!",images:["https://image.yqmh.com/mh/106719.jpg"]}</script><link rel="stylesheet" href="//resource.mhxk.com/kanman_pc/static/style/main/entry.vendor.dddb64.css"><link rel="stylesheet" href="//resource.mhxk.com/kanman_pc/static/style/main/entry.common.f04b60.css"><link rel="stylesheet" href="//resource.mhxk.com/kanman_pc/static/style/main/entry.detail.dec997.css"><!--[if lt IE 9]>10 <script src="//static.321mh.com/js/json.js" type="text/javascript"></script>11 <script src="//static.321mh.com/js/es5-shim.min.js" type="text/javascript"></script>12 <script src="//static.321mh.com/js/es5-sham.min.js" type="text/javascript"></script>13 <![endif]--></head><body><div class="acgn-clearfix" style="width:100%"><div class="acgn-col-24 acgn-col-space-middle"><div id="m_2210_1092_1161" class="acgn-model acgn-model-header acgn-clearfix" data-func-floatnav=""><div class="block-wrap block-wrap-fixed"><div class="acgn-row"><div class="acgn-col-24"><div class="block-float block-float-right"><div class="func-menu"><div class="search"><div class="search-wrap"><input class="search-input" id="J_searchKeywords" type="text" placeholder="凤逆天下"> <i class="ift-search" id="J_searchBtn"></i></div><div class="search-inner" id="J_searchContent"><div class="search-inner-main"><div class="search-history" id="J_searchHistroyBox"><h3 title="搜索历史" class="search-title search-title-shadow">搜索历史</h3><div class="search-clean" id="J_clearSearchHistroy"><i class="ift-close"></i></div><p class="search-no-info acgn-hide acgn-tac" id="J_noSearchHistory">没有任何历史搜索</p><ul class="search-tags" id="J_searchHistroy"></ul></div><div class="search-hot"><h3 class="search-title" id="J_hotSearchTitle">热门搜索</h3><p class="search-no-info acgn-hide acgn-tac" id="J_noHotSearch">没有搜索到结果</p><ul class="search-list" id="J_hotSearch"></ul></div></div></div></div><div class="user" id="J_userInfo"><div class="face"><a href="javascript:;" target="_blank"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/visitor.png" alt="游客"></a></div><div class="user-inner"><div class="user-inner-main"><h3 class="name"><a href="javascript:;" target="_blank">游客</a></h3><ul class="assets"><li class="asset" id="J_gold"><img src="//resource.mhxk.com/kanman_pc/static/images/product/gold.png" alt="钻石" class="mask"> <span class="type">钻石</span> <a href="javascript:;" class="num" target="_blank">0</a></li><li class="asset" id="J_coins"><img src="//resource.mhxk.com/kanman_pc/static/images/product/coins.png" alt="金币" class="mask"> <span class="type">金币</span> <a href="javascript:;" class="num" target="_blank">0</a></li><li class="asset" id="J_recommend"><img src="//resource.mhxk.com/kanman_pc/static/images/product/recommend.png" alt="推荐票" class="mask"> <span class="type">推荐</span> <a href="javascript:;" class="num" target="_blank">0</a></li><li class="asset" id="J_ticket"><img src="//resource.mhxk.com/kanman_pc/static/images/product/ticket.png" alt="月票" class="mask"> <span class="type">月票</span> <a href="javascript:;" class="num" target="_blank">6</a></li></ul><div class="status"><div class="status-login"><div class="login-btn" id="J_layerlogin">登录</div></div></div></div></div></div><ul class="book"><li class="book-nav-item">书架<div class="book-nav-item-bd"><i class="triangle"></i><div class="book-none" id="J_bookNone" style="display:block"><img class="mascot" src="//resource.mhxk.com/kanman_pc/static/images/comm/mascot-fish.png" alt="收藏漫画"><p class="explain">主人,不收藏漫画怎么追更呢~</p><a class="link" href="/sort/" target="_blank" title="漫画分类">去找找漫画</a></div><div class="book-main" id="J_bookshelfBox"><ul class="book-list" id="J_bookshelfList"><li style="font-size:12px;color:#ddd;line-height:32px;text-align:center">加载中......</li></ul><div class="book-count"><span class="all acgn-cursor" id="J_allCollect">全部收藏</span> <span class="bar" id="J_bookshelfCount">0</span></div></div></div></li><li class="book-nav-split">|</li><li class="book-nav-item">历史<div class="book-nav-item-bd"><i class="triangle"></i><div class="book-none" id="J_historyNone" style="display:block"><img class="mascot" src="//resource.mhxk.com/kanman_pc/static/images/comm/mascot-fish.png" alt="阅读漫画"><p class="explain">呜呜~主人都没有阅读过漫画诶~</p></div><div class="book-main" id="J_historyListBox" style="display:block"><ul class="book-list" id="J_historyList"><li style="font-size:12px;color:#ddd;line-height:32px;text-align:center">加载中......</li></ul><div class="book-count"><span class="all acgn-cursor" id="J_gotoHistory">历史记录</span> <span class="bar" id="J_historyCount">0</span></div></div></div></li></ul><div class="download"><a href="https://activity.321mh.com/kmh-pc/" target="_blank" title="下载APP"><i class="ift-phone phone"></i>下载APP</a><div class="download-inner"><img class="qr-code" src="//resource.mhxk.com/kanman_pc/static/images/comm/qr-code.png" alt=""><p class="text">扫一扫 下载APP</p></div></div></div></div><div class="block-float block-float-left"><h1 class="logo" title="看漫画"><a href="/" title="看漫画"><img class="figure" src="//resource.mhxk.com/kanman_pc/static/images/comm/logo-kmh.png" alt="看漫画"></a></h1><ul class="nav-menu"><li class="nav-item"><a href="/" target="_self" title="首页">首页</a> <i class="underline"></i></li><li class="nav-item"><a href="/gengxin/" target="_self" title="更新">更新</a> <i class="underline"></i></li><li class="nav-item"><a href="/top/" target="_self" title="排行">排行</a> <i class="underline"></i></li><li class="nav-item"><a href="/sort/" target="_self" title="分类">分类</a> <i class="underline"></i></li><li class="nav-item"><a href="/news/zixun/" target="_self" title="资讯">资讯</a> <i class="underline"></i></li></ul></div></div></div></div></div></div></div><div class="acgn-container"><div class="acgn-dynamic-content"><div id="__acgn-virtual-coin__"><div class="acgn-virtual-coin" style="display:none"><div class="acgn-virtual-coin__user item"><div class="acgn-virtual-coin__tit">新用户奖励</div><div class="acgn-virtual-coin__info">5000金币</div><div class="acgn-virtual-coin__desc">已到账</div></div><div class="acgn-virtual-coin__surprise item"><div class="acgn-virtual-coin__sub-tit">天降福利 看漫娘随机送</div><div class="acgn-virtual-coin__info">688<span class="sub">金币</span></div><div class="acgn-virtual-coin__tips">金币已发放,请放心阅读!</div></div><div class="acgn-virtual-coin__blood item"><div class="acgn-virtual-coin__sub-tit">金币不够了?看漫娘再送你</div><div class="acgn-virtual-coin__info">3000<span class="sub">金币</span></div><div class="acgn-virtual-coin__tips">金币已发放,请放心阅读!</div></div></div></div><script>window.ACTIVITY_ADVERTISE_DATA=[],window.PAGE_TYPE="detail"</script></div><div class="acgn-clearfix" style="width:100%"><div class="acgn-col-24 acgn-col-space-none"><div class="acgn-model-detail-frontcover"><div class="frontcover-container"><img class="frontcover" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106719_2_1.jpg"><div class="mask"></div><div class="cover-radian"></div><div class="acgn-row"><div class="acgn-col-24"><div class="content"><div class="description"><h1 class="title" title="好想吃掉你的记忆漫画">好想吃掉你的记忆</h1><p class="tags"><span class="stag icon-detail-single">自制</span> <a class="tag" target="_blank" href="/sort/shehui.html" title="社会漫画" class="normal">社会</a> <a class="tag" target="_blank" href="/sort/lianai.html" title="恋爱漫画" class="normal">恋爱</a> <a class="tag" target="_blank" href="/sort/shenghuo.html" title="生活漫画" class="normal">生活</a></p><div class="sort"><span>总人气 &nbsp;<em class="num">2906万</em></span> <span>排名 <em class="num">2579</em></span> <span><i class="ift-paihangxiajiangx"></i><em class="num">31</em></span> <span class="split">|</span> <span>周人气 <em class="num">4511</em></span> <span>排名 <em class="num">2421</em></span> <span><i class="ift-paihangxiashengx"></i><em class="num">5</em></span></div></div><div class="act-btn"><span title="开始阅读" class="btn btn-read read" data-source='{"chapter_id":"yg"}'><i class="ift-cat"></i>开始阅读</span> <span title="继续阅读" style="display:none" class="btn btn-read read continue" data-source='{"chapter_id":"yg"}'><i class="ift-cat"></i>继续阅读<div class="continue-des acgn-hide"><span></span></div></span><span href="javascript:void(0)" class="btn btn-collect collect" data-source='{"comic_id":106719,"comic_name":"好想吃掉你的记忆","last_chapter_id":"19","last_chapter_name":"最终话 哇!完全迷妹","update_time":"1544233786000"}'><i class="ift-cat"></i> <i class="ift-aixin-line"></i>&nbsp;<span>收藏</span> </span><span class="btn btn-collect collected" title="已收藏" style="display:none" data-source='{"comic_id":106719,"comic_name":"好想吃掉你的记忆","last_chapter_id":"19","last_chapter_name":"最终话 哇!完全迷妹","update_time":"1544233786000"}'><i class="ift-cat"></i><i class="ift-aixin"></i>&nbsp;已收藏</span></div></div></div></div></div></div></div></div><div class="acgn-row"><div class="acgn-col-17 acgn-col-space-middle acgn-col-row"><div class="acgn-col-23 acgn-col-space-middle"><div class="acgn-model-detail-chapter acgn-space-small" id="detail-chapter"><div class="hd"><h2 class="title" title="目录">目录</h2><span>2018-12-08&nbsp;&nbsp;&nbsp;&nbsp;更新至 <a title="最终话 哇!完全迷妹" class="last-update" target="_self" href="/106719/19.html"><em>最终话 哇!完全迷妹</em></a></span><div class="page-bar"><div class="swith-bar"><span class="item text">文字</span><i class="split"></i><span class="item img-text active">图文</span></div></div></div><div class="wave-down"></div><div class="bd"><ol class="chapter-list col-5 img-text" id="j_chapter_list"><li class="item" data-id="0" data-chapter="1562449"><a title="预告 " href="/106719/yg.html" target="_self"><div class="img"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//mhpic.jumanhua.com/comic/H/好想吃掉你的记忆/预告GQV/1.jpg-300x150.jpg" alt="预告 "> <i class="j_chapter_badge"></i></div><p class="name"><i class="j_chapter_badge"></i>预告</p></a></li><li class="item" data-id="1" data-chapter="1562558"><a title="第1话 你要吃下这颗糖吗!?" href="/106719/1.html" target="_self"><div class="img"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//mhpic.jumanhua.com/comic/H/好想吃掉你的记忆/1话GQV/1.jpg-300x150.jpg" alt="第1话 你要吃下这颗糖吗!?"> <i class="j_chapter_badge"></i></div><p class="name"><i class="j_chapter_badge"></i>第1话 你要吃下这颗糖吗!?</p></a></li><li class="item" data-id="2" data-chapter="1562727"><a title="第2话 隐藏的女装大佬?!" href="/106719/2.html" target="_self"><div class="img"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//mhpic.jumanhua.com/comic/H/好想吃掉你的记忆/2话GQ/1.jpg-300x150.jpg" alt="第2话 隐藏的女装大佬?!"> <i class="j_chapter_badge"></i></div><p class="name"><i class="j_chapter_badge"></i>第2话 隐藏的女装大佬?!</p></a></li><li class="item" data-id="3" data-chapter="1563131"><a title="第3话 精分男神" href="/106719/3.html" target="_self"><div class="img"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//mhpic.jumanhua.com/comic/H/好想吃掉你的记忆/3话GQ/1.jpg-300x150.jpg" alt="第3话 精分男神"> <i class="j_chapter_badge"></i></div><p class="name"><i class="j_chapter_badge"></i>第3话 精分男神</p></a></li><li class="item" data-id="4" data-chapter="1564421"><a title="第4话 这个爱好有点那啥" href="/106719/4.html" target="_self"><div class="img"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//mhpic.jumanhua.com/comic/H/好想吃掉你的记忆/4话GQ/1.jpg-300x150.jpg" alt="第4话 这个爱好有点那啥"> <i class="j_chapter_badge"></i></div><p class="name"><i class="j_chapter_badge"></i>第4话 这个爱好有点那啥</p></a></li><li class="item" data-id="5" data-chapter="1565024"><a title="第5话 我看到了,你的胖次!" href="/106719/5.html" target="_self"><div class="img"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//mhpic.jumanhua.com/comic/H/好想吃掉你的记忆/5话GQ/1.jpg-300x150.jpg" alt="第5话 我看到了,你的胖次!"> <i class="j_chapter_badge"></i></div><p class="name"><i class="j_chapter_badge"></i>第5话 我看到了,你的胖次!</p></a></li><li class="item" data-id="6" data-chapter="1565429"><a title="第6话 记忆深处的伤痛" href="/106719/6.html" target="_self"><div class="img"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//mhpic.jumanhua.com/comic/H/好想吃掉你的记忆/6话GQ/1.jpg-300x150.jpg" alt="第6话 记忆深处的伤痛"> <i class="j_chapter_badge"></i></div><p class="name"><i class="j_chapter_badge"></i>第6话 记忆深处的伤痛</p></a></li><li class="item" data-id="7" data-chapter="1565697"><a title="第7话 他只要二次元老婆!" href="/106719/7.html" target="_self"><div class="img"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//mhpic.jumanhua.com/comic/H/好想吃掉你的记忆/7话GQ/1.jpg-300x150.jpg" alt="第7话 他只要二次元老婆!"> <i class="j_chapter_badge"></i></div><p class="name"><i class="j_chapter_badge"></i>第7话 他只要二次元老婆!</p></a></li><li class="item" data-id="8" data-chapter="1566788"><a title="第8话 在乎他的一举一动" href="/106719/8.html" target="_self"><div class="img"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//mhpic.jumanhua.com/comic/H/好想吃掉你的记忆/8话GQ/1.jpg-300x150.jpg" alt="第8话 在乎他的一举一动"> <i class="j_chapter_badge"></i></div><p class="name"><i class="j_chapter_badge"></i>第8话 在乎他的一举一动</p></a></li><li class="item" data-id="9" data-chapter="1568334"><a title="第9话 满足你的要求" href="/106719/9.html" target="_self"><div class="img"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//mhpic.jumanhua.com/comic/H/好想吃掉你的记忆/9话GQV/1.jpg-300x150.jpg" alt="第9话 满足你的要求"> <i class="j_chapter_badge"></i></div><p class="name"><i class="j_chapter_badge"></i>第9话 满足你的要求</p></a></li><li class="item" data-id="10" data-chapter="1569864"><a title="第10话 更加令我心动的他" href="/106719/10.html" target="_self"><div class="img"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//mhpic.jumanhua.com/comic/H/好想吃掉你的记忆/10话GQ/1.jpg-300x150.jpg" alt="第10话 更加令我心动的他"> <i class="j_chapter_badge"></i></div><p class="name"><i class="j_chapter_badge"></i>第10话 更加令我心动的他</p></a></li><li class="item" data-id="11" data-chapter="1571486"><a title="第11话 总会有一个人接受你" href="/106719/11.html" target="_self"><div class="img"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//mhpic.jumanhua.com/comic/H/好想吃掉你的记忆/11话GQ/1.jpg-300x150.jpg" alt="第11话 总会有一个人接受你"> <i class="j_chapter_badge"></i></div><p class="name"><i class="j_chapter_badge"></i>第11话 总会有一个人接受你</p></a></li><li class="item" data-id="12" data-chapter="1572512"><a title="第12话 卡哇伊的波点" href="/106719/12.html" target="_self"><div class="img"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//mhpic.jumanhua.com/comic/H/好想吃掉你的记忆/12话GQ/1.jpg-300x150.jpg" alt="第12话 卡哇伊的波点"> <i class="j_chapter_badge"></i></div><p class="name"><i class="j_chapter_badge"></i>第12话 卡哇伊的波点</p></a></li><li class="item" data-id="13" data-chapter="1573818"><a title="第13话 感情深,一口闷" href="/106719/13.html" target="_self"><div class="img"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//mhpic.jumanhua.com/comic/H/好想吃掉你的记忆/13话GQ/1.jpg-300x150.jpg" alt="第13话 感情深,一口闷"> <i class="j_chapter_badge"></i></div><p class="name"><i class="j_chapter_badge"></i>第13话 感情深,一口闷</p></a></li><li class="item" data-id="14" data-chapter="1574665"><a title="第14话 我就是想跟你学" href="/106719/14.html" target="_self"><div class="img"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//mhpic.jumanhua.com/comic/H/好想吃掉你的记忆/14话GQ/1.jpg-300x150.jpg" alt="第14话 我就是想跟你学"> <i class="j_chapter_badge"></i></div><p class="name"><i class="j_chapter_badge"></i>第14话 我就是想跟你学</p></a></li><li class="item" data-id="15" data-chapter="1576205"><a title="第15话 和你走在一起,风都是甜的" href="/106719/15.html" target="_self"><div class="img"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//mhpic.jumanhua.com/comic/H/好想吃掉你的记忆/15话GQ/1.jpg-300x150.jpg" alt="第15话 和你走在一起,风都是甜的"> <i class="j_chapter_badge"></i></div><p class="name"><i class="j_chapter_badge"></i>第15话 和你走在一起,风都是甜的</p></a></li><li class="item" data-id="16" data-chapter="1578211"><a title="第16话 今天开始,我跟你没完!" href="/106719/16.html" target="_self"><div class="img"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//mhpic.jumanhua.com/comic/H/好想吃掉你的记忆/16话GQ/1.jpg-300x150.jpg" alt="第16话 今天开始,我跟你没完!"> <i class="j_chapter_badge"></i></div><p class="name"><i class="j_chapter_badge"></i>第16话 今天开始,我跟你没完!</p></a></li><li class="item" data-id="17" data-chapter="1591370"><a title="第17话 被男神抱了" href="/106719/17.html" target="_self"><div class="img"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//mhpic.jumanhua.com/comic/H/好想吃掉你的记忆/17话GQ/1.jpg-300x150.jpg" alt="第17话 被男神抱了"> <i class="j_chapter_badge"></i></div><p class="name"><i class="j_chapter_badge"></i>第17话 被男神抱了</p></a></li><li class="item" data-id="18" data-chapter="1592282"><a title="第18话 不想让你受委屈" href="/106719/18.html" target="_self"><div class="img"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//mhpic.jumanhua.com/comic/H/好想吃掉你的记忆/18话GQ/1.jpg-300x150.jpg" alt="第18话 不想让你受委屈"> <i class="j_chapter_badge"></i></div><p class="name"><i class="j_chapter_badge"></i>第18话 不想让你受委屈</p></a></li><li class="item" data-id="19" data-chapter="1593070"><a title="最终话 哇!完全迷妹" href="/106719/19.html" target="_self"><div class="img"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//mhpic.jumanhua.com/comic/H/好想吃掉你的记忆/19话GQ/1.jpg-300x150.jpg" alt="最终话 哇!完全迷妹"> <i class="j_chapter_badge"></i></div><p class="name"><i class="j_chapter_badge"></i>最终话 哇!完全迷妹</p></a></li></ol></div></div></div><div class="acgn-col-23 acgn-col-space-middle"><div class="acgn-model-detail-statistic acgn-space-small"><div class="hd"><h3 class="title" title="支持作者大大">支持作者大大</h3></div><div class="bd"><i class="body-before"></i> <i class="body-after"></i><ul class="detail-box"><li class="item"><i class="icon-detail-read"></i><div class="detail"><span class="name" title="阅读">阅读</span> <span class="num">1984万</span></div></li><li class="item"><i class="icon-detail-dayactive"></i><div class="detail"><span class="name" title="日活">日活</span> <span class="num">31.1万</span></div></li><li class="item"><i class="icon-detail-collect"></i><div class="detail"><span class="name" title="收藏">收藏</span> <span class="num">22259</span></div></li><li class="item"><i class="icon-detail-share"></i><div class="detail"><span class="name" title="分享">分享</span> <span class="num">2363</span></div></li><li class="item"><i class="icon-detail-message"></i><div class="detail"><span class="name" title="留言">留言</span> <span class="num">2020</span></div></li><li class="item"><i class="icon-detail-gift"></i><div class="detail"><span class="name" title="礼物">礼物</span> <span class="num">52070</span></div></li><li class="item"><i class="icon-detail-appreciate"></i><div class="detail"><span class="name" title="赞赏">赞赏</span> <span class="num">11469</span></div></li><li class="item"><i class="icon-detail-monthticket"></i><div class="detail"><span class="name" title="月票">月票</span> <span class="num">1647</span></div></li><li class="item"><i class="icon-detail-recommend"></i><div class="detail"><span class="name" title="推荐">推荐</span> <span class="num">6271</span></div></li><li class="item"><i class="icon-detail-mark"></i><div class="detail"><span class="name" title="评分">评分</span> <span class="num">4.7</span></div></li></ul></div><div class="fans"><ul class="queue" data-comic_id="1078" id="j_fans_queue"></ul></div><div class="footer"><div class="btn-func" href="javascript:void(0)"><i class="icon-detail-leg"></i> 给作者加油打call~<div class="menu-box"><div class="select-menu"><i class="icon-detail-triangle-down triangle"></i><ul><li class="item event-appreate"><div class="icon-detail-dbg-2"><i class="icon-detail-appreciate"></i></div><p class="name">赞赏</p></li><li class="item event-present gift-item"><div class="gift-dialog"><div class="logo"><img src="//resource.mhxk.com/kanman_pc/static/images/detail/app_qrcode.png" alt=""></div><p class="text">抱歉,送礼物请前往APP上操作,给您带来的不便敬请谅解哦~</p><p class="tips">扫码即可下载看漫画App</p><span class="gift"></span></div><div class="icon-detail-dbg-3"><i class="icon-detail-gift"></i></div><p class="name">礼物</p></li><li class="item event-ticket"><div class="icon-detail-dbg-2"><i class="icon-detail-monthticket"></i></div><p class="name">月票</p></li><li class="item event-feather"><div class="icon-detail-dbg-1"><i class="icon-detail-recommend"></i></div><p class="name">推荐</p></li><li class="item event-mark"><div class="icon-detail-dbg-4"><i class="icon-detail-mark"></i></div><p class="name">评分</p></li><li class="item event-share"><div class="icon-detail-dbg-3"><i class="icon-detail-share"></i></div><p class="name">分享</p></li></ul></div></div></div><p class="des">作者大大需要您的支持 ヾ(●°∇°●)ノ゙</p></div></div></div><div class="acgn-col-23 acgn-col-space-middle"><div id="recommend" class="acgn-model acgn-model-detail-recommend acgn-space-small"><div class="model-head"><h3 class="title" title="相关推荐">相关推荐</h3><span class="change" title="换一换"><i class="ift-loop-arrow"></i> 换一换</span></div><div class="model-content"><div class="swiper-area swiper-area-auto"><div class="swiper-container"><div class="swiper-wrapper"><div class="swiper-slide"><div class="brace-wrap"><ul class="brace-x"><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x4"><a href="/94141/" target="_self" title="双重人生" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/94141.jpg" alt="双重人生,双重人生漫画"><div class="wave"></div></a></div><div class="info"><h3 title="双重人生" class="name"><a href="/94141/" target="_self" title="">双重人生</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x4"><a href="/104101/" target="_self" title="致命宠情:总裁纳命来" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/104101.jpg" alt="致命宠情:总裁纳命来,致命宠情:总裁纳命来漫画"><div class="wave"></div></a></div><div class="info"><h3 title="致命宠情:总裁纳命来" class="name"><a href="/104101/" target="_self" title="">致命宠情:总裁纳命来</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x4"><a href="/104912/" target="_self" title="恋爱app" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/104912.jpg" alt="恋爱app,恋爱app漫画"><div class="wave"></div></a></div><div class="info"><h3 title="恋爱app" class="name"><a href="/104912/" target="_self" title="">恋爱app</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x4"><a href="/104999/" target="_self" title="恋爱插班生" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/104999.jpg" alt="恋爱插班生,恋爱插班生漫画"><div class="wave"></div></a></div><div class="info"><h3 title="恋爱插班生" class="name"><a href="/104999/" target="_self" title="">恋爱插班生</a></h3></div></div></li></ul></div></div><div class="swiper-slide"><div class="brace-wrap"><ul class="brace-x"><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x4"><a href="/105033/" target="_self" title="墓血之央" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/105033.jpg" alt="墓血之央,墓血之央漫画"><div class="wave"></div></a></div><div class="info"><h3 title="墓血之央" class="name"><a href="/105033/" target="_self" title="">墓血之央</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x4"><a href="/105407/" target="_self" title="反转吧,女神大人!" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/105407.jpg" alt="反转吧,女神大人!,反转吧,女神大人!漫画"><div class="wave"></div></a></div><div class="info"><h3 title="反转吧,女神大人!" class="name"><a href="/105407/" target="_self" title="">反转吧,女神大人!</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x4"><a href="/105625/" target="_self" title="逆袭的旋律之音" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/105625.jpg" alt="逆袭的旋律之音,逆袭的旋律之音漫画"><div class="wave"></div></a></div><div class="info"><h3 title="逆袭的旋律之音" class="name"><a href="/105625/" target="_self" title="">逆袭的旋律之音</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x4"><a href="/105681/" target="_self" title="青春测试期" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/105681.jpg" alt="青春测试期,青春测试期漫画"><div class="wave"></div></a></div><div class="info"><h3 title="青春测试期" class="name"><a href="/105681/" target="_self" title="">青春测试期</a></h3></div></div></li></ul></div></div><div class="swiper-slide"><div class="brace-wrap"><ul class="brace-x"><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x4"><a href="/105689/" target="_self" title="甜涩糖果" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/105689.jpg" alt="甜涩糖果,甜涩糖果漫画"><div class="wave"></div></a></div><div class="info"><h3 title="甜涩糖果" class="name"><a href="/105689/" target="_self" title="">甜涩糖果</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x4"><a href="/106136/" target="_self" title="变美APP:丑女逆袭法则" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106136.jpg" alt="变美APP:丑女逆袭法则,变美APP:丑女逆袭法则漫画"><div class="wave"></div></a></div><div class="info"><h3 title="变美APP:丑女逆袭法则" class="name"><a href="/106136/" target="_self" title="">变美APP:丑女逆袭法则</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x4"><a href="/106154/" target="_self" title="甜蜜蜜" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106154.jpg" alt="甜蜜蜜,甜蜜蜜漫画"><div class="wave"></div></a></div><div class="info"><h3 title="甜蜜蜜" class="name"><a href="/106154/" target="_self" title="">甜蜜蜜</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x4"><a href="/106166/" target="_self" title="从0到1的重生" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106166.jpg" alt="从0到1的重生,从0到1的重生漫画"><div class="wave"></div></a></div><div class="info"><h3 title="从0到1的重生" class="name"><a href="/106166/" target="_self" title="">从0到1的重生</a></h3></div></div></li></ul></div></div><div class="swiper-slide"><div class="brace-wrap"><ul class="brace-x"><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x4"><a href="/106186/" target="_self" title="狼性总裁的魅惑新娘" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106186.jpg" alt="狼性总裁的魅惑新娘,狼性总裁的魅惑新娘漫画"><div class="wave"></div></a></div><div class="info"><h3 title="狼性总裁的魅惑新娘" class="name"><a href="/106186/" target="_self" title="">狼性总裁的魅惑新娘</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x4"><a href="/106196/" target="_self" title="总裁的专属空姐" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106196.jpg" alt="总裁的专属空姐,总裁的专属空姐漫画"><div class="wave"></div></a></div><div class="info"><h3 title="总裁的专属空姐" class="name"><a href="/106196/" target="_self" title="">总裁的专属空姐</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x4"><a href="/106198/" target="_self" title="小女子非嫁不可" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106198.jpg" alt="小女子非嫁不可,小女子非嫁不可漫画"><div class="wave"></div></a></div><div class="info"><h3 title="小女子非嫁不可" class="name"><a href="/106198/" target="_self" title="">小女子非嫁不可</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x4"><a href="/106298/" target="_self" title="我的校草是球星" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106298.jpg" alt="我的校草是球星,我的校草是球星漫画"><div class="wave"></div></a></div><div class="info"><h3 title="我的校草是球星" class="name"><a href="/106298/" target="_self" title="">我的校草是球星</a></h3></div></div></li></ul></div></div></div></div></div></div></div></div><div class="acgn-col-23 acgn-col-space-middle"><div id="recommend" class="acgn-model acgn-model-detail-recommend-2 acgn-space-small"><div class="model-head"><h3 class="title" title="猜你喜欢">猜你喜欢</h3><span class="change" title="换一换"><i class="ift-loop-arrow"></i> 换一换</span></div><div class="model-content"><div class="swiper-area swiper-area-auto"><div class="swiper-container"><div class="swiper-wrapper"><div class="swiper-slide"><div class="brace-wrap"><ul class="brace-x"><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x2"><a href="/5323/" target="_self" title="神印王座" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/5323_2_1.jpg" alt="神印王座,神印王座漫画"><div class="wave"></div></a></div><div class="info"><h3 title="神印王座" class="name"><a href="/5323/" target="_self" title="">神印王座</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x2"><a href="/8842/" target="_self" title="寻找前世之旅" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/8842_2_1.jpg" alt="寻找前世之旅,寻找前世之旅漫画"><div class="wave"></div></a></div><div class="info"><h3 title="寻找前世之旅" class="name"><a href="/8842/" target="_self" title="">寻找前世之旅</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x2"><a href="/9033/" target="_self" title="血族禁域" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/9033_2_1.jpg" alt="血族禁域,血族禁域漫画"><div class="wave"></div></a></div><div class="info"><h3 title="血族禁域" class="name"><a href="/9033/" target="_self" title="">血族禁域</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x2"><a href="/25933/" target="_self" title="斗罗大陆" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/25933_2_1.jpg" alt="斗罗大陆,斗罗大陆漫画"><div class="wave"></div></a></div><div class="info"><h3 title="斗罗大陆" class="name"><a href="/25933/" target="_self" title="">斗罗大陆</a></h3></div></div></li></ul></div></div><div class="swiper-slide"><div class="brace-wrap"><ul class="brace-x"><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x2"><a href="/27417/" target="_self" title="妖神记" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/27417_2_1.jpg" alt="妖神记,妖神记漫画"><div class="wave"></div></a></div><div class="info"><h3 title="妖神记" class="name"><a href="/27417/" target="_self" title="">妖神记</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x2"><a href="/100144/" target="_self" title="皇帝的独生女" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/100144_2_1.jpg" alt="皇帝的独生女,皇帝的独生女漫画"><div class="wave"></div></a></div><div class="info"><h3 title="皇帝的独生女" class="name"><a href="/100144/" target="_self" title="">皇帝的独生女</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x2"><a href="/102433/" target="_self" title="重生豪门之强势归来" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/102433_2_1.jpg" alt="重生豪门之强势归来,重生豪门之强势归来漫画"><div class="wave"></div></a></div><div class="info"><h3 title="重生豪门之强势归来" class="name"><a href="/102433/" target="_self" title="">重生豪门之强势归来</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x2"><a href="/104754/" target="_self" title="不嫁总裁嫁男仆" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/104754_2_1.jpg" alt="不嫁总裁嫁男仆,不嫁总裁嫁男仆漫画"><div class="wave"></div></a></div><div class="info"><h3 title="不嫁总裁嫁男仆" class="name"><a href="/104754/" target="_self" title="">不嫁总裁嫁男仆</a></h3></div></div></li></ul></div></div><div class="swiper-slide"><div class="brace-wrap"><ul class="brace-x"><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x2"><a href="/105143/" target="_self" title="我被总裁黑上了!" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/105143_2_1.jpg" alt="我被总裁黑上了!,我被总裁黑上了!漫画"><div class="wave"></div></a></div><div class="info"><h3 title="我被总裁黑上了!" class="name"><a href="/105143/" target="_self" title="">我被总裁黑上了!</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x2"><a href="/106014/" target="_self" title="丑颜王爷我要了" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106014_2_1.jpg" alt="丑颜王爷我要了,丑颜王爷我要了漫画"><div class="wave"></div></a></div><div class="info"><h3 title="丑颜王爷我要了" class="name"><a href="/106014/" target="_self" title="">丑颜王爷我要了</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x2"><a href="/106026/" target="_self" title="盛世帝后" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106026_2_1.jpg" alt="盛世帝后,盛世帝后漫画"><div class="wave"></div></a></div><div class="info"><h3 title="盛世帝后" class="name"><a href="/106026/" target="_self" title="">盛世帝后</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x2"><a href="/106141/" target="_self" title="满朝文武嫉恨我" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106141_2_1.jpg" alt="满朝文武嫉恨我,满朝文武嫉恨我漫画"><div class="wave"></div></a></div><div class="info"><h3 title="满朝文武嫉恨我" class="name"><a href="/106141/" target="_self" title="">满朝文武嫉恨我</a></h3></div></div></li></ul></div></div><div class="swiper-slide"><div class="brace-wrap"><ul class="brace-x"><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x2"><a href="/106266/" target="_self" title="史莱姆恋成记" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106266_2_1.jpg" alt="史莱姆恋成记,史莱姆恋成记漫画"><div class="wave"></div></a></div><div class="info"><h3 title="史莱姆恋成记" class="name"><a href="/106266/" target="_self" title="">史莱姆恋成记</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x2"><a href="/106273/" target="_self" title="王妃的婚后指南" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106273_2_1.jpg" alt="王妃的婚后指南,王妃的婚后指南漫画"><div class="wave"></div></a></div><div class="info"><h3 title="王妃的婚后指南" class="name"><a href="/106273/" target="_self" title="">王妃的婚后指南</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x2"><a href="/106303/" target="_self" title="邪王的绝世毒妃" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106303_2_1.jpg" alt="邪王的绝世毒妃,邪王的绝世毒妃漫画"><div class="wave"></div></a></div><div class="info"><h3 title="邪王的绝世毒妃" class="name"><a href="/106303/" target="_self" title="">邪王的绝世毒妃</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x2"><a href="/106306/" target="_self" title="女医辛夷传" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106306_2_1.jpg" alt="女医辛夷传,女医辛夷传漫画"><div class="wave"></div></a></div><div class="info"><h3 title="女医辛夷传" class="name"><a href="/106306/" target="_self" title="">女医辛夷传</a></h3></div></div></li></ul></div></div><div class="swiper-slide"><div class="brace-wrap"><ul class="brace-x"><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x2"><a href="/106368/" target="_self" title="这个贵妃有点飘" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106368_2_1.jpg" alt="这个贵妃有点飘,这个贵妃有点飘漫画"><div class="wave"></div></a></div><div class="info"><h3 title="这个贵妃有点飘" class="name"><a href="/106368/" target="_self" title="">这个贵妃有点飘</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x2"><a href="/106400/" target="_self" title="最强妖孽" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106400_2_1.jpg" alt="最强妖孽,最强妖孽漫画"><div class="wave"></div></a></div><div class="info"><h3 title="最强妖孽" class="name"><a href="/106400/" target="_self" title="">最强妖孽</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x2"><a href="/25934/" target="_self" title="斗破苍穹" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/25934_2_1.jpg" alt="斗破苍穹,斗破苍穹漫画"><div class="wave"></div></a></div><div class="info"><h3 title="斗破苍穹" class="name"><a href="/25934/" target="_self" title="">斗破苍穹</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-3x2"><a href="/25933/" target="_self" title="斗罗大陆" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/25933_2_1.jpg" alt="斗罗大陆,斗罗大陆漫画"><div class="wave"></div></a></div><div class="info"><h3 title="斗罗大陆" class="name"><a href="/25933/" target="_self" title="">斗罗大陆</a></h3></div></div></li></ul></div></div></div></div></div></div></div></div><div class="acgn-col-24 acgn-col-space-middle"><div id="m_318527_1070_1307" class="acgn-model acgn-model-cms-recommend acgn-space-normal" data-func-floatnav=""><div class="model-content"><div class="swiper-area swiper-area-auto"><div class="swiper-container"><div class="swiper-wrapper"></div></div></div></div></div></div><div class="acgn-col-23 acgn-col-space-middle"><div id="comments" class="acgn-model acgn-model-detail-comment"><div class="model-head"><h3 class="comment-title title">漫评</h3></div><div class="model-content"><div id="COMMENT" data-ssid="106719" data-title="好想吃掉你的记忆"></div></div></div></div></div><div class="acgn-col-7 acgn-col-space-middle acgn-col-row"><div class="acgn-col-24 acgn-col-space-middle"><div class="acgn-model acgn-model-detail-introduce acgn-space-small"><div class="acgn-new-hd"><span class="switch mhjj active" title="漫画简介">漫画简介</span> <span class="split"></span> <span class="switch zzjs" title="作者角色">作者角色</span></div><div class="acgn-new-bd"><div class="mhjj active"><div class="img-box"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" alt="好想吃掉你的记忆漫画" data-src="//image.yqmh.com/mh/106719.jpg"></div><div class="update-info"><i class="icon-detail-tick"></i><p class="status">完结<span class="spot">·</span></p><p class="update-date">每周三、六更新</p><div class="auth-message">ta很懒,什么也没有留下~</div></div><div class="introduce"><h2 class="title">故事简介</h2><div class="desc-box"><div class="content">【独家/每周三、六更新】女主吃下神秘的记忆糖果,成功接近了暗恋的男神。在男神记忆中,看到了许多秘密和伤痛,决定帮助男主解开心结。然而当记忆糖果也落入他人手中时,开始引发了一些列恶果。记忆糖果是好是坏,又将如何挽救恶果。</div></div></div></div><div class="zzjs"><div class="swiper-box"><div class="adapt-box"><div class="adapt-ratio-4x3"></div><div class="adapt-content"><div class="swiper-area"><div class="swiper-container"><div class="swiper-wrapper"><div class="swiper-slide"><div class="pic"><img alt="二次元动漫" class="pic-cover" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="http://head.samanlehua.com/kmh_user_head/064/110/610.jpg-100x100"></div><a href="/106719/zuozhe/387358/" style="display:none"></a></div><div class="swiper-slide"><div class="pic"><img alt="次元时代" class="pic-cover" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="http://head.samanlehua.com/kmh_user_head/066/044/162.jpg-100x100"></div><a href="/106719/zuozhe/496320/" style="display:none"></a></div><div class="swiper-slide"><div class="pic"><img alt="罗十一" class="pic-cover" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="http://head.samanlehua.com/kmh_user_head/066/039/150.jpg-100x100"></div><a href="/106719/juese/496114/" style="display:none"></a></div><div class="swiper-slide"><div class="pic"><img alt="林亭鹤" class="pic-cover" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="http://head.samanlehua.com/kmh_user_head/066/039/152.jpg-100x100"></div><a href="/106719/juese/496115/" style="display:none"></a></div><div class="swiper-slide"><div class="pic"><img alt="熊昕瑜" class="pic-cover" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="http://head.samanlehua.com/kmh_user_head/066/039/143.jpg-100x100"></div><a href="/106719/juese/496112/" style="display:none"></a></div><div class="swiper-slide"><div class="pic"><img alt="周怀墨" class="pic-cover" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="http://head.samanlehua.com/kmh_user_head/066/039/147.jpg-100x100"></div><a href="/106719/juese/496113/" style="display:none"></a></div></div></div></div></div></div></div><div class="introduce-box" data-index="0"><div class="username"><a href="/106719/zuozhe/387358/" title="二次元动漫" target="_blank">二次元动漫 | 共有 <span class="num">132</span> 部作品</a></div><div class="desc"><div class="title">简介</div><div class="desc-box"><div class="content">成都二次元动漫有限公司是一家互联网公司。主要做正版漫画网站以及漫画app阅读,前景可观。从事动漫行业十余年,业内知名品牌,与BAT等各大互联网巨头均有合作,并已打通整个产业链,盈利良好。</div></div></div></div><div class="introduce-box acgn-hide" data-index="1"><div class="username"><a href="/106719/zuozhe/496320/" title="次元时代" target="_blank">次元时代 | 共有 <span class="num">1</span> 部作品</a></div><div class="desc"><div class="title">简介</div><div class="desc-box"><div class="content">次元时代是一家原创二次元内容平台,拥有漫画和轻小说两大模块,集合了国内最优秀的二次元原创内容,是原创类和少女漫画的人气平台。</div></div></div></div><div class="introduce-box acgn-hide" data-index="2"><div class="username"><a href="/106719/juese/496114/" title="罗十一" target="_blank">罗十一</a></div><div class="desc"><div class="title">简介</div><div class="desc-box"><div class="content">从小开始,因为自己喜欢玩游戏追剧基本不融入大家的圈子,唯有男二陪着她,所以很重视男二这份友情。因为高一迎新晚会时,看到男主的表演打动了自己,而暗恋了男主。父母经营着普通的甜品店,家庭很温馨美好。</div></div></div></div><div class="introduce-box acgn-hide" data-index="3"><div class="username"><a href="/106719/juese/496115/" title="林亭鹤" target="_blank">林亭鹤</a></div><div class="desc"><div class="title">简介</div><div class="desc-box"><div class="content">是个深藏不漏的二次元宅+女装大佬,在高中校园看起来很现充很阳光,唱功好会乐器,音乐给予他自信。母亲和继父生活在国外,基本对男主放养。男主一直觉得没有人会在知道他二次元一面后还能接受他。男主母亲是出名的服装设计师,男主也因此才迷恋上女装,母亲并没有阻止男主,但是父亲却很拒绝,因此父母离异,母亲后来改嫁给一位外国人常居巴黎。</div></div></div></div><div class="introduce-box acgn-hide" data-index="4"><div class="username"><a href="/106719/juese/496112/" title="熊昕瑜" target="_blank">熊昕瑜</a></div><div class="desc"><div class="title">简介</div><div class="desc-box"><div class="content">女主宿友之一,喜欢做美食后分享大家一起吃,因此受男生欢迎,因为怎么都吃不胖的体质,被女生排挤。男主虽然不喜欢甜食,但经常鼓励她,给予了她很多帮助,因此很感激男主。喜欢逗沉闷的男二玩,偶尔也会做黑暗料理玩。在宿舍养了一只鸭子当宠物。</div></div></div></div><div class="introduce-box acgn-hide" data-index="5"><div class="username"><a href="/106719/juese/496113/" title="周怀墨" target="_blank">周怀墨</a></div><div class="desc"><div class="title">简介</div><div class="desc-box"><div class="content">家境很好,但是讨厌家中利益纷争。因为成绩很好,家人并不在意他别的事。因为成绩很好,家人并不在意他别的事。在学校除了女主,不怎么接触其他人,看起来像是死读书,因为不懂收拾打扮自己,总是很随意,所以也总是被人议论。总是被活泼乐天的女二逗乐,喜欢她的真切不做作。</div></div></div></div></div></div></div></div><div class="acgn-col-24 acgn-col-space-middle"><div class="acgn-model-detail-contribution acgn-space-small"><div class="hd">粉丝贡献榜</div><div class="bd"><ul class="top3"><li class="item no-1"><a rel="nofollow" href="/user/41048123.html" target="_blank" title="葬爱风尘"><img class="head-img" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//head.samanlehua.com/kmh_user_head/041/048/123.jpg-100x100.jpg" alt="葬爱风尘"></a><div class="user-info"><div><a rel="nofollow" href="/user/41048123.html" target="_blank" title="葬爱风尘"><span class="username" title="葬爱风尘">葬爱风尘</span></a><div class="level"><i class="ift-dengjix"></i><span class="level-num">LV5</span></div></div><div class="contribute"><span>贡献值&nbsp;&nbsp;&nbsp;</span> <span>17.3万</span></div></div><i class="icon-detail-cup-no1 cup"></i></li><li class="item no-2"><a rel="nofollow" href="/user/59224034.html" target="_blank" title="User_9WygK4d8I0"><img class="head-img" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//head.samanlehua.com/kmh_user_head/059/224/034.jpg-100x100.jpg" alt="User_9WygK4d8I0"></a><div class="user-info"><div><a rel="nofollow" href="/user/59224034.html" target="_blank" title="User_9WygK4d8I0"><span class="username" title="User_9WygK4d8I0">User_9WygK4d8I0</span></a><div class="level"><i class="ift-dengjix"></i><span class="level-num">LV1</span></div></div><div class="contribute"><span>贡献值&nbsp;&nbsp;&nbsp;</span> <span>10.6万</span></div></div><i class="icon-detail-cup-no2 cup"></i></li><li class="item no-3"><a rel="nofollow" href="/user/61405444.html" target="_blank" title="Phaertiy"><img class="head-img" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//head.samanlehua.com/kmh_user_head/061/405/444.jpg-100x100.jpg" alt="Phaertiy"></a><div class="user-info"><div><a rel="nofollow" href="/user/61405444.html" target="_blank" title="Phaertiy"><span class="username" title="Phaertiy">Phaertiy</span></a><div class="level"><i class="ift-dengjix"></i><span class="level-num">LV1</span></div></div><div class="contribute"><span>贡献值&nbsp;&nbsp;&nbsp;</span> <span>10.4万</span></div></div><i class="icon-detail-cup-no3 cup"></i></li></ul><ul class="normal-list"><li class="item"><a rel="nofollow" href="/user/64352110.html" target="_blank" title="Vv__64352110" class="username"><span class="num">4</span><span title="Vv__64352110">Vv__64352110</span></a><div class="level"><i class="ift-dengjix"></i><span class="level-num">LV4</span></div><span class="contribute">91130</span></li><li class="item"><a rel="nofollow" href="/user/41624028.html" target="_blank" title="咸鱼OX" class="username"><span class="num">5</span><span title="咸鱼OX">咸鱼OX</span></a><div class="level"><i class="ift-dengjix"></i><span class="level-num">LV7</span></div><span class="contribute">48990</span></li><li class="item"><a rel="nofollow" href="/user/47782130.html" target="_blank" title="1s-Y仔" class="username"><span class="num">6</span><span title="1s-Y仔">1s-Y仔</span></a><div class="level"><i class="ift-dengjix"></i><span class="level-num">LV3</span></div><span class="contribute">46150</span></li><li class="item"><a rel="nofollow" href="/user/6450295.html" target="_blank" title="可当当" class="username"><span class="num">7</span><span title="可当当">可当当</span></a><div class="level"><i class="ift-dengjix"></i><span class="level-num">LV6</span></div><span class="contribute">33700</span></li><li class="item"><a rel="nofollow" href="/user/43161998.html" target="_blank" title="光年之子" class="username"><span class="num">8</span><span title="光年之子">光年之子</span></a><div class="level"><i class="ift-dengjix"></i><span class="level-num">LV20</span></div><span class="contribute">28890</span></li><li class="item"><a rel="nofollow" href="/user/11012314.html" target="_blank" title="我是大人啊魂淡" class="username"><span class="num">9</span><span title="我是大人啊魂淡">我是大人啊魂淡</span></a><div class="level"><i class="ift-dengjix"></i><span class="level-num">LV8</span></div><span class="contribute">26920</span></li><li class="item"><a rel="nofollow" href="/user/3581786.html" target="_blank" title="欣933" class="username"><span class="num">10</span><span title="欣933">欣933</span></a><div class="level"><i class="ift-dengjix"></i><span class="level-num">LV16</span></div><span class="contribute">26120</span></li></ul></div></div></div><div class="acgn-col-24 acgn-col-space-middle"><div class="acgn-model acgn-model-detail-rank acgn-space-small"><div class="model-head"><h3 class="title">综合榜</h3><div class="tab-area"><div class="tabs-underline"><div class="tab active" data-type="week">周<div class="line"></div></div><div class="tab" data-type="month">月<div class="line"></div></div><div class="tab" data-type="total">总<div class="line"></div></div></div></div></div><div class="model-content"><div class="area"><div data-type="week" class="block-container active"><ul class="rank-list"></ul></div><div data-type="month" class="block-container"><ul class="rank-list"></ul></div><div data-type="all" class="block-container"><ul class="rank-list"></ul></div></div></div></div></div><div class="acgn-col-24 acgn-col-space-middle"><div class="acgn-model acgn-model-detail-review acgn-space-small"><div class="model-head"><h3 class="title" title="看了又看">看了又看</h3><span class="change" title="换一换"><i class="ift-loop-arrow"></i> 换一换</span></div><div class="model-content"><div class="swiper-area swiper-area-auto"><div class="swiper-container"><div class="swiper-wrapper"><div class="swiper-slide"><div class="brace-wrap"><ul class="brace-x"><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/8131/" target="_self" title="千叶樱华" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/8131_2_1.jpg" alt="千叶樱华,千叶樱华漫画"></a></div><div class="info"><h3 title="千叶樱华" class="name"><a href="/8131/" target="_self" title="">千叶樱华</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/9299/" target="_self" title="心与爱丽丝" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/9299_2_1.jpg" alt="心与爱丽丝,心与爱丽丝漫画"></a></div><div class="info"><h3 title="心与爱丽丝" class="name"><a href="/9299/" target="_self" title="">心与爱丽丝</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/11440/" target="_self" title="忘川涟漪" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/11440_2_1.jpg" alt="忘川涟漪,忘川涟漪漫画"></a></div><div class="info"><h3 title="忘川涟漪" class="name"><a href="/11440/" target="_self" title="">忘川涟漪</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/82917/" target="_self" title="喵的假期" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/82917_2_1.jpg" alt="喵的假期,喵的假期漫画"></a></div><div class="info"><h3 title="喵的假期" class="name"><a href="/82917/" target="_self" title="">喵的假期</a></h3></div></div></li></ul></div></div><div class="swiper-slide"><div class="brace-wrap"><ul class="brace-x"><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/87120/" target="_self" title="最强神眼" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/87120_2_1.jpg" alt="最强神眼,最强神眼漫画"></a></div><div class="info"><h3 title="最强神眼" class="name"><a href="/87120/" target="_self" title="">最强神眼</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/93621/" target="_self" title="三月初三" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/93621_2_1.jpg" alt="三月初三,三月初三漫画"></a></div><div class="info"><h3 title="三月初三" class="name"><a href="/93621/" target="_self" title="">三月初三</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/93919/" target="_self" title="王牌校草" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/93919_2_1.jpg" alt="王牌校草,王牌校草漫画"></a></div><div class="info"><h3 title="王牌校草" class="name"><a href="/93919/" target="_self" title="">王牌校草</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/99326/" target="_self" title="甜蜜孽情" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/99326_2_1.jpg" alt="甜蜜孽情,甜蜜孽情漫画"></a></div><div class="info"><h3 title="甜蜜孽情" class="name"><a href="/99326/" target="_self" title="">甜蜜孽情</a></h3></div></div></li></ul></div></div><div class="swiper-slide"><div class="brace-wrap"><ul class="brace-x"><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/104537/" target="_self" title="Butterfly" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/104537_2_1.jpg" alt="Butterfly,Butterfly漫画"></a></div><div class="info"><h3 title="Butterfly" class="name"><a href="/104537/" target="_self" title="">Butterfly</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/105074/" target="_self" title="霸道校草的拽丫头" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/105074_2_1.jpg" alt="霸道校草的拽丫头,霸道校草的拽丫头漫画"></a></div><div class="info"><h3 title="霸道校草的拽丫头" class="name"><a href="/105074/" target="_self" title="">霸道校草的拽丫头</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/105429/" target="_self" title="中国传统节俗" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/105429_2_1.jpg" alt="中国传统节俗,中国传统节俗漫画"></a></div><div class="info"><h3 title="中国传统节俗" class="name"><a href="/105429/" target="_self" title="">中国传统节俗</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/105509/" target="_self" title="我的俘虏" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/105509_2_1.jpg" alt="我的俘虏,我的俘虏漫画"></a></div><div class="info"><h3 title="我的俘虏" class="name"><a href="/105509/" target="_self" title="">我的俘虏</a></h3></div></div></li></ul></div></div><div class="swiper-slide"><div class="brace-wrap"><ul class="brace-x"><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/105918/" target="_self" title="当他降临" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/105918_2_1.jpg" alt="当他降临,当他降临漫画"></a></div><div class="info"><h3 title="当他降临" class="name"><a href="/105918/" target="_self" title="">当他降临</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/105984/" target="_self" title="人质恋人" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/105984_2_1.jpg" alt="人质恋人,人质恋人漫画"></a></div><div class="info"><h3 title="人质恋人" class="name"><a href="/105984/" target="_self" title="">人质恋人</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/106022/" target="_self" title="我的校草不可能这么萌" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106022_2_1.jpg" alt="我的校草不可能这么萌,我的校草不可能这么萌漫画"></a></div><div class="info"><h3 title="我的校草不可能这么萌" class="name"><a href="/106022/" target="_self" title="">我的校草不可能这么萌</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/106176/" target="_self" title="这个猫妖不好惹" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106176_2_1.jpg" alt="这个猫妖不好惹,这个猫妖不好惹漫画"></a></div><div class="info"><h3 title="这个猫妖不好惹" class="name"><a href="/106176/" target="_self" title="">这个猫妖不好惹</a></h3></div></div></li></ul></div></div><div class="swiper-slide"><div class="brace-wrap"><ul class="brace-x"><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/106262/" target="_self" title="隐婚蜜爱:偏执老公宠上瘾" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106262_2_1.jpg" alt="隐婚蜜爱:偏执老公宠上瘾,隐婚蜜爱:偏执老公宠上瘾漫画"></a></div><div class="info"><h3 title="隐婚蜜爱:偏执老公宠上瘾" class="name"><a href="/106262/" target="_self" title="">隐婚蜜爱:偏执老公宠上瘾</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/106333/" target="_self" title="浅夏初雨" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106333_2_1.jpg" alt="浅夏初雨,浅夏初雨漫画"></a></div><div class="info"><h3 title="浅夏初雨" class="name"><a href="/106333/" target="_self" title="">浅夏初雨</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/106337/" target="_self" title="校草必须要爱我" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106337_2_1.jpg" alt="校草必须要爱我,校草必须要爱我漫画"></a></div><div class="info"><h3 title="校草必须要爱我" class="name"><a href="/106337/" target="_self" title="">校草必须要爱我</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/106382/" target="_self" title="双面老师的夜间补习" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106382_2_1.jpg" alt="双面老师的夜间补习,双面老师的夜间补习漫画"></a></div><div class="info"><h3 title="双面老师的夜间补习" class="name"><a href="/106382/" target="_self" title="">双面老师的夜间补习</a></h3></div></div></li></ul></div></div><div class="swiper-slide"><div class="brace-wrap"><ul class="brace-x"><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/106406/" target="_self" title="错位恋歌" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106406_2_1.jpg" alt="错位恋歌,错位恋歌漫画"></a></div><div class="info"><h3 title="错位恋歌" class="name"><a href="/106406/" target="_self" title="">错位恋歌</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/106490/" target="_self" title="学霸哥哥转型中" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/106490_2_1.jpg" alt="学霸哥哥转型中,学霸哥哥转型中漫画"></a></div><div class="info"><h3 title="学霸哥哥转型中" class="name"><a href="/106490/" target="_self" title="">学霸哥哥转型中</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/25934/" target="_self" title="斗破苍穹" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/25934_2_1.jpg" alt="斗破苍穹,斗破苍穹漫画"></a></div><div class="info"><h3 title="斗破苍穹" class="name"><a href="/25934/" target="_self" title="">斗破苍穹</a></h3></div></div></li><li class="size-cell"><div class="comic-cell pic-wave"><div class="adapt-ratio-2x1"><a href="/25933/" target="_self" title="斗罗大陆" class="pic adapt-inner"><img class="bg" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="//image.yqmh.com/mh/25933_2_1.jpg" alt="斗罗大陆,斗罗大陆漫画"></a></div><div class="info"><h3 title="斗罗大陆" class="name"><a href="/25933/" target="_self" title="">斗罗大陆</a></h3></div></div></li></ul></div></div></div></div></div></div></div></div></div></div></div><div class="acgn-clearfix" style="width:100%"><div class="acgn-col-24 acgn-col-space-none"><div id="m_2167_1093_1162" class="acgn-model acgn-model-footer" data-func-floatnav=""><div class="star-tree"><img src="//resource.mhxk.com/kanman_pc/static/images/comm/star-tree.gif" alt=""></div><div class="footer-content acgn-clearfix"><div class="footer-left"><ul class="link-list"><li class="link-item link">&nbsp;</li><li class="link-item link"><a ref="nofollow" href="/about/409271.html" target="_blank" title="关于看漫">关于看漫</a></li><li class="link-item link"><a ref="nofollow" href="/sitemap/index.html" target="_blank" title="网站地图">网站地图</a></li></ul><ul class="link-list"><li class="link-item link"><a ref="nofollow" href="/about/409898.html" target="_blank" title="创作问答">创作问答</a></li><li class="link-item link"><a ref="nofollow" href="/about/409272.html" target="_blank" title="法律声明">法律声明</a></li><li class="link-item link"><a ref="nofollow" href="javascript:void(0);" title="加入我们">加入我们</a></li></ul><ul class="link-list"><li class="link-item link"><a ref="nofollow" href="/about/409274.html" target="_blank" title="版权合作">版权合作</a></li><li class="link-item link"><a ref="nofollow" href="/about/409275.html" target="_blank" title="投稿指南">投稿指南</a></li><li class="link-item link"><a ref="nofollow" href="/about/409276.html" target="_blank" title="用户协议">用户协议</a></li></ul></div><div class="footer-center"><div class="code-block"><img class="qr-code" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="https://cms.samanlehua.com/cms/wangbaodong/71a95250-2568-11ea-b3f5-33f476e04f27.png" alt="下载客户端"><p class="text">下载客户端</p></div><div class="code-block"><img class="qr-code" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="https://cms.samanlehua.com/cms/dengting/f7beaa20-b44d-11e9-8b4c-f750f4618b4e.png" alt="关注微博"><p class="text">关注微博</p></div><div class="code-block"><img class="qr-code" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="https://cms.samanlehua.com/cms/dengting/153feaf0-b44e-11e9-944a-ff52dff10974.png" alt="关注微信"><p class="text">关注微信</p></div><div class="code-block"><img class="qr-code" src="//resource.mhxk.com/kanman_pc/static/images/comm/space.gif" data-src="https://cms.samanlehua.com/cms/dengting/2e81d460-b44e-11e9-8100-032d227c76eb.png" alt="小程序"><p class="text">小程序</p></div></div><div class="footer-right"><ul class="link-list"><li class="link-item">电话:400-616-1961</li><li class="link-item">QQ:<a href="tencent://message/?uin=4006161961&Site=&Menu=yes" rel="nofollow">4006161961</a></li><li class="link-item">QQ群:<a href="tencent://message/?uin=724607947&Site=&Menu=yes" rel="nofollow">724607947</a></li><li class="link-item">邮箱:kefu@xiaomingtaiji.com</li></ul><span class="feedback-btn J_contact">意见反馈</span></div></div><div class="block-bottom"><a class="acgn-dark" ref="nofollow" href="http://beian.miit.gov.cn" target="_blank" title="版权信息">鄂ICP备20007481号-1</a> | <a class="acgn-dark" ref="nofollow" href="https://resource.mhxk.com/public/internet/kmh.jpg" target="_blank" title="文网文">鄂网文(2020)2367-090号</a><br>公司地址: 湖北省鄂州市葛店开发区葛店镇罗庄村、秋千村光谷联合科技城D3-1号1层101室<br>Copyright &copy; 2021 鄂州看漫画动漫有限公司 版权所有 <a href="/about/409860.html" target="_self" title="纠纷处理">纠纷处理</a> <a href="/about/409859.html" target="_self" title="自审制度">自审制度</a></div></div></div></div><div class="acgn-row"><div class="acgn-col-24 acgn-col-space-middle"><div id="m_2213_1106_1184" class="acgn-model acgn-model-comic-floater acgn-space-small"></div></div></div><div class="acgn-row"><div class="acgn-col-24 acgn-col-space-middle"><div id="m_2216_1094_1183" class="acgn-model acgn-model-float"><div class="float-cat-main"><ul class="round-list-group js_list"><li class="item"><a rel="nofollow" href="/#update">每日更新</a></li><li class="item"><a rel="nofollow" href="/#rank">排行榜单</a></li></ul><div class="connect"><div class="line"></div></div><div class="round-list"><div class="item item-icon"><a href="https://activity.321mh.com/kmh-pc/" target="_blank" title="下载APP"><i class="ift-qr-code"></i></a><div class="item-hover"><div class="float-qr-code"><img class="pic" src="//resource.mhxk.com/kanman_pc/static/images/comm/qr-code.png" alt="扫一扫,下载APP"><p class="text">扫一扫,下载APP</p></div></div></div><div id="J_backtop" class="item item-icon"><i class="ift-more-top"></i></div></div><div class="cat"></div></div></div></div></div><script src="//resource.mhxk.com/kanman_pc/static/manifest.479a23.js" type="text/javascript"></script><script src="//resource.mhxk.com/kanman_pc/static/js/chunk/vendor.c9a5c2.js" type="text/javascript"></script><script src="//resource.mhxk.com/kanman_pc/static/js/main/entry.common.f7d1a3.js" type="text/javascript"></script><script src="//resource.mhxk.com/kanman_pc/static/js/main/entry.detail.59b18f.js" type="text/javascript"></script><script>window.cnzz=["_trackEvent","好想吃掉你的记忆","kmh_pc","",106719],_czc=[["_setAccount","1255417151"]],_czc.push(cnzz)</script><script src="//vvip.cnzz.com/stat.php?id=1255417151&web_id=1255417151&show=none"></script><script src="//vvip.cnzz.com/stat.php?id=1261814609&web_id=1261814609&show=none"></script><script src="//jspassport.ssl.qhimg.com/11.0.1.js?d182b3f28525f2db83acfaaf6e696dba" id="sozz"></script><script>!function(){var t=document.createElement("script"),e=window.location.protocol.split(":")[0];t.src="https"===e?"https://zz.bdstatic.com/linksubmit/push.js":"http://push.zhanzhang.baidu.com/push.js";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(t,s)}()</script></body></html>14Process finished with exit code 0...

Full Screen

Full Screen

class_bot.py

Source:class_bot.py Github

copy

Full Screen

1from selenium import webdriver2from selenium.webdriver.common.keys import Keys3from auth_data import username, password4from direct_users_list import direct_users_list5from selenium.common.exceptions import NoSuchElementException6# импортируем модули time and random to create pause527import time8import random9import requests10import os11class InstagramBot():12 def __init__(self, username, password):13 self.username = username14 self.password = password15 self.browser = webdriver.Chrome('../chromedriver/chromedriver.exe')16 def close_browser(self):17 self.browser.close()18 self.browser.quit()19 def login(self):20 """создаем экземпляр класса гугл хром и передаем ему21 в качестве параметра путь до драйвера"""22 browser = self.browser23 browser.get('https://instagram.com')24 # установим рандомную паузу от 3-до 525 time.sleep(random.randrange(3, 5))26 # находим поле ввода юзернейма27 username_input = browser.find_element_by_name('username')28 # очищаем на всякий случай29 username_input.clear()30 # вводим наш юзернэйм31 username_input.send_keys(username)32 # 2 sec delay33 time.sleep(2)34 # находим поле ввода пароля35 password_input = browser.find_element_by_name('password')36 # очищаем на всякий случай37 password_input.clear()38 # вводим наш пароль39 password_input.send_keys(password)40 # нажимаем на кнопку ввода41 password_input.send_keys(Keys.ENTER)42 time.sleep(20)43 def like_photo_by_hastag(self, hashtag):44 browser = self.browser45 browser.get(f'https://www.instagram.com/explore/tags/{hashtag}/')46 time.sleep(5)47 # имитируем скрол страницы48 for i in range(1, 4): # 4 скрола49 browser.execute_script('window.scrollTo(0, document.body.scrollHeight);')50 time.sleep(random.randrange(3, 5))51 # сoбираем все ссылки со страницы52 hrefs = browser.find_elements_by_tag_name('a')53 # формируем список нужных ссылок54 posts_url = [item.get_attribute('href') for item in hrefs if "/p/" in item.get_attribute('href')]55 # print(posts_url)56 # лайкаем все посты по хэштегу57 for url in posts_url:58 try:59 browser.get(url)60 time.sleep(5)61 # в модальном окне отрабатывать это икспас не будет62 like_button = browser.find_element_by_xpath(63 '/html/body/div[1]/section/main/div/div[1]/article/div[3]/section[1]/span[1]/button').click()64 time.sleep(random.randrange(80, 100))65 except Exception as ex:66 print(ex)67 self.browser.close()68 # проверяем по xpath существует ли элемент на странице69 def xpath_exist(self, url):70 browser = self.browser71 try:72 browser.find_element_by_xpath(url)73 exist = True74 except NoSuchElementException:75 exist = False76 return exist77 # ставим лайк на пост по прямой ссылке78 def put_exactly_like(self, userpost):79 browser = self.browser80 browser.get(userpost)81 time.sleep(4)82 wrong_userpage = "/html/body/div[1]/section/main/div/h2"83 if self.xpath_exist(wrong_userpage):84 print('Поста не существует проверь URL')85 self.close_browser()86 else:87 print('Пост успешно найден, ставим лайк')88 time.sleep(2)89 like_button = "html/body/div[1]/section/main/div/div/article/div[3]/section[1]/span[1]/button"90 browser.find_element_by_xpath(like_button).click()91 time.sleep(2)92 print(f'Лайк на пост {userpost} успешно поставлен')93 self.close_browser()94 # метод собирает ссылки на все посты пользователя95 def get_all_posts_urls(self, userpage):96 browser = self.browser97 browser.get(userpage)98 time.sleep(4)99 wrong_userpage = "/html/body/div[1]/section/main/div/h2"100 if self.xpath_exist(wrong_userpage):101 print('Юзера не существует проверь URL')102 self.close_browser()103 else:104 print('Юзер успешно найден, ставим лайк')105 time.sleep(2)106 post_count = int(browser.find_element_by_xpath(107 '/html/body/div[1]/section/main/div/header/section/ul/li[1]/span/span').text)108 loops_count = int(post_count / 12)109 print(loops_count)110 time.sleep(2)111 posts_urls = []112 # проверка условия прокрутки страницы если мало простов то else113 if loops_count > 0:114 for i in range(0, loops_count):115 hrefs = browser.find_elements_by_tag_name('a')116 hrefs = [item.get_attribute('href') for item in hrefs if "/p/" in item.get_attribute('href')]117 for href in hrefs:118 posts_urls.append(href)119 browser.execute_script("window.scrollTo(0, document.body.scrollHeight);")120 time.sleep(random.randrange(3, 5))121 print(f"Итерация #{i}")122 else:123 print("прокрутка не требуется")124 hrefs = browser.find_elements_by_tag_name('a')125 hrefs = [item.get_attribute('href') for item in hrefs if "/p/" in item.get_attribute('href')]126 for href in hrefs:127 posts_urls.append(href)128 time.sleep(random.randrange(3, 5))129 file_name = userpage.split('/')[-2]130 with open(f'{file_name}.txt', 'a', encoding='utf-8') as file:131 for post_url in posts_urls:132 file.write(post_url + "\n")133 # избавимся от задвоения сслыок и внесем рандом134 set_posts_urls = set(posts_urls)135 set_posts_urls = list(set_posts_urls)136 with open(f'{file_name}_set.txt', 'a', encoding='utf-8') as f:137 for post_url in set_posts_urls:138 f.write(post_url + '\n')139 def put_many_likes(self, userpage):140 browser = self.browser141 self.get_all_posts_urls(userpage)142 file_name = userpage.split('/')[-2]143 time.sleep(4)144 browser.get(userpage)145 time.sleep(4)146 # лайкаем147 with open(f'{file_name}_set.txt') as file:148 urls_list = file.readlines()149 for post_url in urls_list[:10]:150 try:151 browser.get(post_url)152 time.sleep(2)153 like_button = "html/body/div[1]/section/main/div/div/article/div[3]/section[1]/span[1]/button"154 browser.find_element_by_xpath(like_button).click()155 # time.sleep(random.randrange(80, 100))156 time.sleep(2)157 print(f'Лайк на пост {post_url} успешно поставлен')158 except Exception as ex:159 print(ex)160 self.close_browser()161 def download_userpage_content(self, userpage):162 browser = self.browser163 self.get_all_posts_urls(userpage)164 file_name = userpage.split('/')[-2]165 time.sleep(4)166 browser.get(userpage)167 time.sleep(4)168 #создаем папку с именем пользователя169 if os.path.exists(f'{file_name}'):170 print('папка уже есть')171 else:172 os.mkdir(file_name)173 # сохраним ссылки в список174 img_and_video_src_urls = []175 with open(f'{file_name}_set.txt') as file:176 urls_list = file.readlines()177 for post_url in urls_list:178 try:179 browser.get(post_url)180 time.sleep(4)181 img_src = '/html/body/div[1]/section/main/div/div[1]/article/div[2]/div/div/div[1]/img'182 video_src = '/html/body/div[1]/section/main/div/div[1]/article/div[2]/div/div/div[1]/div/div/video'183 post_id = post_url.split('/')[-2]184 #если картинка есть на странице то мы забираем ссылку из атрибута src185 if self.xpath_exist(img_src):186 img_src_url = browser.find_element_by_xpath(img_src).get_attribute('src')187 img_and_video_src_urls.append(img_src_url)188 # сохраняем изображение189 get_img = requests.get(img_src_url)190 with open(f'{file_name}/{file_name}_{post_id}_img.jpg', 'wb') as img_file:191 img_file.write(get_img.content)192 elif self.xpath_exist(video_src):193 video_src_url = browser.find_element_by_xpath(video_src).get_attribute('src')194 img_and_video_src_urls.append(video_src_url)195 # сохраняем видео196 get_video = requests.get(video_src_url, stream=True)197 with open(f'{file_name}/{file_name}_{post_id}_video.mp4', 'wb') as video_file:198 video_file.write(get_video.content)199 for chunk in get_video.iter_content(chunk_size=1024*1024):200 if chunk:201 video_file.write(chunk)202 else:203 # print('что-то сломалось')204 img_and_video_src_urls.append(f'{post_url} нет ссылки')205 print(f'контент из поста {post_url} успешно скачан')206 except Exception as ex:207 print(ex)208 self.close_browser()209 self.close_browser()210 with open(f'{file_name}/{file_name}_img_and_video_src_urls.txt', 'a') as file:211 for i in img_and_video_src_urls:212 file.write(i + '\n')213 # метод подписки на всех подписчиков переданного аккаунта214 def get_all_followers(self, userpage):215 browser = self.browser216 browser.get(userpage)217 time.sleep(4)218 file_name = userpage.split("/")[-2]219 # создаём папку с именем пользователя для чистоты проекта220 if os.path.exists(f"{file_name}"):221 print(f"Папка {file_name} уже существует!")222 else:223 print(f"Создаём папку пользователя {file_name}.")224 os.mkdir(file_name)225 wrong_userpage = "/html/body/div[1]/section/main/div/h2"226 if self.xpath_exist(wrong_userpage):227 print(f"Пользователя {file_name} не существует, проверьте URL")228 self.close_browser()229 else:230 print(f"Пользователь {file_name} успешно найден, начинаем скачивать ссылки на подписчиков!")231 time.sleep(2)232 followers_button = browser.find_element_by_xpath(233 "/html/body/div[1]/section/main/div/header/section/ul/li[2]/a")234 followers_count = followers_button.text235 followers_count = int(followers_count.split(' ')[0])236 print(f"Количество подписчиков: {followers_count}")237 time.sleep(2)238 loops_count = int(followers_count / 12)239 print(f"Число итераций: {loops_count}")240 time.sleep(4)241 followers_button.click()242 time.sleep(4)243 followers_ul = browser.find_element_by_xpath("/html/body/div[5]/div/div")244 try:245 followers_urls = []246 for i in range(1, loops_count + 1):247 browser.execute_script("arguments[0].scrollTop = arguments[0].scrollHeight", followers_ul)248 time.sleep(random.randrange(2, 4))249 print(f"Итерация #{i}")250 all_urls_div = followers_ul.find_elements_by_tag_name("li")251 for url in all_urls_div:252 url = url.find_element_by_tag_name("a").get_attribute("href")253 followers_urls.append(url)254 # сохраняем всех подписчиков пользователя в файл255 with open(f"{file_name}/{file_name}.txt", "a") as text_file:256 for link in followers_urls:257 text_file.write(link + "\n")258 with open(f"{file_name}/{file_name}.txt") as text_file:259 users_urls = text_file.readlines()260 for user in users_urls[0:10]:261 try:262 try:263 with open(f'{file_name}/{file_name}_subscribe_list.txt',264 'r') as subscribe_list_file:265 lines = subscribe_list_file.readlines()266 if user in lines:267 print(f'Мы уже подписаны на {user}, переходим к следующему пользователю!')268 continue269 except Exception as ex:270 print('Файл со ссылками ещё не создан!')271 # print(ex)272 browser = self.browser273 browser.get(user)274 page_owner = user.split("/")[-2]275 if self.xpath_exist("/html/body/div[1]/section/main/div/header/section/div[1]/div/a"):276 print("Это наш профиль, уже подписан, пропускаем итерацию!")277 elif self.xpath_exist(278 "/html/body/div[1]/section/main/div/header/section/div[1]/div[2]/div/span/span[1]/button/div/span"):279 print(f"Уже подписаны, на {page_owner} пропускаем итерацию!")280 else:281 time.sleep(random.randrange(4, 8))282 if self.xpath_exist(283 "/html/body/div[1]/section/main/div/div/article/div[1]/div/h2"):284 try:285 follow_button = browser.find_element_by_xpath(286 "/html/body/div[1]/section/main/div/header/section/div[1]/div[1]/button").click()287 print(f'Запросили подписку на пользователя {page_owner}. Закрытый аккаунт!')288 except Exception as ex:289 print(ex)290 else:291 try:292 if self.xpath_exist(293 "/html/body/div[1]/section/main/div/header/section/div[1]/div[1]/button"):294 follow_button = browser.find_element_by_xpath(295 "/html/body/div[1]/section/main/div/header/section/div[1]/div[1]/button").click()296 print(f'Подписались на пользователя {page_owner}. Открытый аккаунт!')297 else:298 follow_button = browser.find_element_by_xpath(299 "/html/body/div[1]/section/main/div/header/section/div[1]/div[1]/div/div/div/span/span[1]/button").click()300 print(f'Подписались на пользователя {page_owner}. Открытый аккаунт!')301 except Exception as ex:302 print(ex)303 # записываем данные в файл для ссылок всех подписок, если файла нет, создаём, если есть - дополняем304 with open(f'{file_name}/{file_name}_subscribe_list.txt',305 'a') as subscribe_list_file:306 subscribe_list_file.write(user)307 time.sleep(random.randrange(7, 15))308 except Exception as ex:309 print(ex)310 self.close_browser()311 except Exception as ex:312 print(ex)313 self.close_browser()314 self.close_browser()315 # метод для отправки сообщения в директ316 def send_direct_message(self, username='', message=''):317 browser = self.browser318 time.sleep(random.randrange(2, 4))319 direct_button_message = '/html/body/div[1]/section/nav/div[2]/div/div/div[3]/div/div[2]/a'320 if not self.xpath_exist(direct_button_message):321 print('кнопка отправки сообщения не найдена')322 self.close_browser()323 else:324 print('отправляем сообщение...')325 direct_message = browser.find_element_by_xpath(direct_button_message).click()326 time.sleep(random.randrange(2, 4))327 # отключаем всплывающее окно328 if self.xpath_exist('/html/body/div[5]/div'):329 browser.find_element_by_xpath('/html/body/div[5]/div/div/div/div[3]/button[2]').click()330 time.sleep(random.randrange(2, 4))331 send_message_button = browser.find_element_by_xpath('/html/body/div[1]/section/div/div[2]/div/div/div[2]/div/div[3]/div/button').click()332 time.sleep(random.randrange(2, 4))333 # вводим получателя334 to_input = browser.find_element_by_xpath('/html/body/div[5]/div/div/div[2]/div[1]/div/div[2]/input')335 to_input.send_keys(username)336 time.sleep(random.randrange(2, 4))337 # выбираем получателя из списка338 users_list = browser.find_element_by_xpath('/html/body/div[5]/div/div/div[2]/div[2]').find_element_by_tag_name('button').click()339 time.sleep(random.randrange(2, 4))340 next_button = browser.find_element_by_xpath('/html/body/div[5]/div/div/div[1]/div/div[2]/div/button').click()341 time.sleep(random.randrange(2, 4))342 text_message_area = browser.find_element_by_xpath('/html/body/div[1]/section/div/div[2]/div/div/div[2]/div[2]/div/div[2]/div/div/div[2]/textarea')343 text_message_area.clear()344 text_message_area.send_keys(message)345 time.sleep(random.randrange(2, 4))346 text_message_area.send_keys(Keys.ENTER)347 print(f'Сообщение для {username} успешно отправлено')348 self.close_browser()349 # метод массовой рассылки сообщений в директ350 def masiv_sending_messages(self, usernames='', message='', img_path=''):351 browser = self.browser352 time.sleep(random.randrange(2, 4))353 direct_button_message = '/html/body/div[1]/section/nav/div[2]/div/div/div[3]/div/div[2]/a'354 if not self.xpath_exist(direct_button_message):355 print('кнопка отправки сообщения не найдена')356 self.close_browser()357 else:358 print('отправляем сообщение...')359 direct_message = browser.find_element_by_xpath(direct_button_message).click()360 time.sleep(random.randrange(2, 4))361 # отключаем всплывающее окно362 if self.xpath_exist('/html/body/div[5]/div'):363 browser.find_element_by_xpath('/html/body/div[5]/div/div/div/div[3]/button[2]').click()364 time.sleep(random.randrange(2, 4))365 send_message_button = browser.find_element_by_xpath(366 '/html/body/div[1]/section/div/div[2]/div/div/div[2]/div/div[3]/div/button').click()367 time.sleep(random.randrange(2, 4))368 # отправка сообщений нескольким пользователям369 for user in usernames:370 # вводим получателя371 to_input = browser.find_element_by_xpath('/html/body/div[5]/div/div/div[2]/div[1]/div/div[2]/input')372 to_input.send_keys(user)373 time.sleep(random.randrange(2, 4))374 # выбираем получателя из списка375 users_list = browser.find_element_by_xpath('/html/body/div[5]/div/div/div[2]/div[2]').find_element_by_tag_name('button').click()376 time.sleep(random.randrange(2, 4))377 next_button = browser.find_element_by_xpath('/html/body/div[5]/div/div/div[1]/div/div[2]/div/button').click()378 time.sleep(random.randrange(2, 4))379 # отправка текстового сообщения380 if message:381 text_message_area = browser.find_element_by_xpath(382 '/html/body/div[1]/section/div/div[2]/div/div/div[2]/div[2]/div/div[2]/div/div/div[2]/textarea')383 text_message_area.clear()384 text_message_area.send_keys(message)385 time.sleep(random.randrange(2, 4))386 text_message_area.send_keys(Keys.ENTER)387 print(f'Сообщение для {username} успешно отправлено')388 time.sleep(random.randrange(2, 4))389 # отправка изображения390 if img_path:391 send_message_input = browser.find_element_by_xpath('/html/body/div[1]/section/div/div[2]/div/div/div[2]/div[2]/div/div[2]/div/div/form/input')392 send_message_input.send_keys(img_path)393 print(f'изображение для {usernames} успешно отправлено')394 time.sleep(random.randrange(2, 4))395 self.close_browser()396my_bot = InstagramBot(username, password)397my_bot.login()398# my_bot.get_all_followers('https://www.instagram.com/mgelatta/')399# my_bot.send_direct_message('sviteribuben', 'Hi')400my_bot.masiv_sending_messages(direct_users_list, "Hi, i'm testing my bot) Don't worry", "C:/Users/zvuk/PycharmProjects/instabot/1_bot/ph4.jpg")401# my_bot.download_userpage_content('https://www.instagram.com/elayes.lb/')402# my_bot.put_exactly_like('https://www.instagram.com/p/B9j0VnRoDOJ/')...

Full Screen

Full Screen

BeautifulSoupTest.py

Source:BeautifulSoupTest.py Github

copy

Full Screen

1from bs4 import BeautifulSoup2# html = """3# <html><head><title id='id_title' class="class_title1 class_title2">the dormous story</title></head>4# <body><p class="title"><b>the dormous story</b></p><div><!--comment test--></div><p class="story">Once upon a time there were three little girls;and they were5# <a href="http://example.com/elsie" class="sister" id="link1">Elsize</a>,<a href="http://example.com/lacie" class="sister" id="link2">Lacie</a>and6# <a href="http://example.com/tillie" class="sister" id="link3">Tillie</a>;and they lived a bottom of a well.</p>7# <p class="story">...</p>8# """9# soup = BeautifulSoup(html,'lxml')10# #格式化输出,并自动补齐11# print(soup.prettify())12# 四大对象种类13# 1,Tag14html = """15<html><head><title id='id_title' class="class_title1 class_title2">the dormous story</title></head>16<body><p class="title"><b>the dormous story</b></p><div><!--comment test--></div><p class="story">Once upon a time there were three little girls;and they were17<a href="http://example.com/elsie" class="sister" id="link1">Elsize</a>,<a href="http://example.com/lacie" class="sister" id="link2">Lacie</a>and18<a href="http://example.com/tillie" class="sister" id="link3">Tillie</a>;and they lived a bottom of a well.</p>19<p class="story">...</p>20"""21soup = BeautifulSoup(html,'lxml')22# print('title type:',type(soup.title))23# print('title name:',soup.title.name)#名称24# print('title attrs:',soup.title.attrs)#属性25# NavigableString26# 获取标签内部文字27# print('p.string type:',type(soup.p.string))#获取第一个p标签28# print('p.string contents:',soup.p.string)29# BeautifulSoup30# 表示一个文档的全部内容31# soup = BeautifulSoup(html,'lxml')32# print('soup type:',type(soup))33# print('soup name:',soup.name)34# print('soup attrs:',soup.attrs)35# 2,comment36# 注释37html = """38<html><head><title id='id_title' class="class_title1 class_title2">the dormous story</title></head>39<body><p class="title"><b>the dormous story</b></p><div><!--comment test--></div><p class="story">Once upon a time there were three little girls;and they were40<a href="http://example.com/elsie" class="sister" id="link1">Elsize</a>,<a href="http://example.com/lacie" class="sister" id="link2">Lacie</a>and41<a href="http://example.com/tillie" class="sister" id="link3">Tillie</a>;and they lived a bottom of a well.</p>42<p class="story">...</p>43"""44soup = BeautifulSoup(html,'lxml')45# print('soup.div.string:',soup.div.string)# 输出注释内容,但不输出注释符号46# print('soup.div.string.type:',type(soup.div.string))47# print('soup.p.string.type:',type(soup.p.string))48# 遍历文档树49# 节点内容50# .string51# 获取tag内容,若tag只有一个NavigableString类型子节点,那么这个tag可以使用,超过一个,返回none52html = """53<html><head></head>54<body>55<p><b>p-content</b></p>56<div>div-content<span>span-content</span></div>57"""58soup = BeautifulSoup(html,'lxml')59# print('p.string content:',soup.p.string)60# print('div.string content:',soup.div.string)61# 获取多个内容62# .strings:获取所有内容,返回一个generator(包含空白字符)63# .stripped_strings:获取所有内容,返回一个generator(剔除空白字符)64html = """65<html><head></head>66<body>67<p><b>p-content</b></p>68<div>div-content<span>span-content</span></div>69"""70soup = BeautifulSoup(html,'lxml')71# print('soup.p.strings content:',soup.p.strings)72# print('soup.p.strings.list:',list(soup.p.strings))73# print('-------------------')74# print('soup.div.strings content:',soup.div.strings)75# print('soup.div.strings.list:',list(soup.div.strings))76# 直接子节点77# .contents属性:将tag的子节点以列表形式输出78# .children属性:将tag的子节点以list-iterator形式输出79from bs4 import BeautifulSoup80html = """81<html><head></head>82<body>83<p><b>p-content</b></p>84<div>div-content<span>span-content</span></div>85"""86soup = BeautifulSoup(html,'lxml')87# print('soup.div.contents:',soup.div.contents)88# print('soup.div.contents list',list(soup.div.contents))89# print('-------------')90# print('soup.div.children:',soup.div.children)91# print('soup.div.children list:',list(soup.div.children))92# 所有子孙节点93# .descendants属性:对所有子节点递归94from bs4 import BeautifulSoup95html = """96<html><head></head>97<body>98<p><b>p-content</b></p>99<div>div-content<span>span-content</span></div>100"""101soup = BeautifulSoup(html,'lxml')102# print('soup.div.contents:',soup.div.contents)103# print('soup.div.contents list',list(soup.div.contents))104# print('-------------')105# print('soup.div.children:',soup.div.descendants)106# print('soup.div.children list:',list(soup.div.descendants))107# 父节点108#.parent属性:父节点109html = """110<html><head></head>111<body>112<p><b>p-content</b></p>113<div>div-content<span>span-content</span></div>114"""115# soup = BeautifulSoup(html,'lxml')116# print('soup.b.parent:',soup.b.parent)117# print('soup.b.parent type:',type(soup.b.parent))118# 全部父节点119#.parents属性:所有父节点120html = """121<html><head></head>122<body>123<p><b>p-content</b></p>124<div>div-content<span>span-content</span></div>125"""126soup = BeautifulSoup(html,'lxml')127# print('soup.b.parents:',soup.b.parents)128# print('soup.b.parents type:',type(soup.b.parents))129# print('-----------------------------')130# for i in soup.b.parents:131# print('parent name:',i.name)132# 兄弟节点133# .next_sibling属性:下一个兄弟节点134# .previous_sibling属性:上一个兄弟节点135html = """136<html><head></head>137<body>138<p><b>p-content</b></p>139<div>div-content<span>span-content</span></div>140"""141soup = BeautifulSoup(html,'lxml')142# print('soup.p.next_sibling:',repr(soup.p.next_sibling))143# print('soup.p.next_sibling type:',type(soup.p.next_sibling))144# print('-----------------------')145# print('soup.p.next_sibling.next_sibling:',repr(soup.p.next_sibling.next_sibling))146# print('soup.p.next_sibling.next_sibling type:',type(soup.p.next_sibling.next_sibling))147# print('-----------------------')148# print('soup.p.previous_sibling:',repr(soup.p.previous_sibling))149# print('soup.p.previous_sibling type:',type(soup.p.previous_sibling))150# print('-----------------------')151# print('soup.p.previous_sibling.previous_sibling:',soup.p.previous_sibling.previous_sibling)152# print('soup.p.previous_sibling.previous_sibling type:',type(soup.p.previous_sibling.previous_sibling))153# 全部兄弟节点154# .next_siblings:全部弟弟(generator)155# .previous_siblings:全部哥哥(generator)156from bs4 import BeautifulSoup157html = """158<html><head></head>159<body>160<p><b>p-content</b></p>161<div>div-content<span>span-content</span></div>162"""163# soup = BeautifulSoup(html,'lxml')164# print('soup.p.next_silibings type:',type(soup.p.next_siblings))165# print('soup.p.next_silibings list:',list(soup.p.next_siblings))166# print('----------------------------------')167# print('soup.p.previous_silibings type:',type(soup.p.previous_siblings))168# print('soup.p.previous_silibings list:',list(soup.p.previous_siblings))169# 前后节点170# .next_element:后一个节点171# .previous_element:前一个节点172html = """173<html><head></head>174<body>175<p><b>p-content</b></p>176<div>div-content<span>span-content</span></div>177"""178# soup = BeautifulSoup(html,'lxml')179# print('soup.p.next_element:',repr(soup.p.next_element))180# print('soup.p.next_element.next_element:',repr(soup.p.next_element.next_element))181# print('soup.p.next_element.next_element.next_element:',repr(soup.p.next_element.next_element.next_element))182# print('soup.p.next_element.next_element.next_element.next_element:',repr(soup.p.next_element.next_element.next_element.next_element))183# print('-----------------')184# print('soup.p.previous_element:',repr(soup.p.previous_element))185# print('soup.p.previous_element.previous_element:',repr(soup.p.previous_element.previous_element))186# print('soup.p.previous_element.previous_element.previous_element:',repr(soup.p.previous_element.previous_element.previous_element))187# print('soup.p.previous_element.previous_element.previous_element.previous_element:',repr(soup.p.previous_element.previous_element.previous_element.previous_element))188# 所有前后节点189# .next_elements:所有后节点,返回生成器190# .previous_elemetns:所有前节点,返回生成器191from bs4 import BeautifulSoup192html = """193<html><head></head>194<body>195<p><b>p-content</b></p>196<div>div-content<span>span-content</span></div>197"""198soup = BeautifulSoup(html,'lxml')199# print('soup.p.next_elements type:',type(soup.p.next_elements))200# for i in soup.p.next_elements:201# print('soup.p.next_element:',repr(i))202# print('-------------------------')203# print('soup.p.previous_elements type:',type(soup.p.previous_elements))204# for i in soup.p.previous_elements:205# print('soup.p.previous_element:',repr(i))206# 搜索文档树207# find_all():当前标签的所有子节点及当前节点,返回一个列表208from bs4 import BeautifulSoup209html = """210<html><head></head>211<body>212<p><b>p-content1</b></p>213<p>p-content2</p>214<div>div-content<span>span-content</span></div>215"""216# soup = BeautifulSoup(html,'lxml')217# print(soup.find_all('p'))218# 通过正则找219import re220from bs4 import BeautifulSoup221html = """222<html><head></head>223<body>224<p><b>p-content1</b></p>225<p>p-content2</p>226<panda>panda-content</panda>227<div>div-content<span>span-content</span></div>228"""229soup = BeautifulSoup(html,'lxml')230# print(soup.find_all(re.compile('^p')))231# 通过列表查找232from bs4 import BeautifulSoup233html = """234<html><head></head>235<body>236<p><b>p-content1</b></p>237<p>p-content2</p>238<panda>panda-content</panda>239<div>div-content<span>span-content</span></div>240"""241soup = BeautifulSoup(html,'lxml')242print(soup.find_all(['p','div']))243# 通过正则配合内容查找244from bs4 import BeautifulSoup245html = """246<html><head></head>247<body>248<p><b>p-content1</b></p>249<p>p-content2</p>250<panda>panda-content</panda>251<div>div-content<span>span-content</span></div>252"""253soup = BeautifulSoup(html,'lxml')254# print(soup.find_all(text=re.compile('content$'))) # find_all()返回标签,内容用text255# 通过属性查找256# html = """257# <html><head></head>258# <body>259# <p><b>p-content1</b></p>260# <p>p-content2</p>261# <panda id='panda'>panda-content</panda>262# <div>div-content<span>span-content</span></div>263# """264# soup = BeautifulSoup(html,'lxml')265# print(soup.find_all(id='panda'))266# 限制次数267# html = """268# <html><head></head>269# <body>270# <p><b>p-content1</b></p>271# <p>p-content2</p>272# <p>p-content3</p>273# <p>p-content4</p>274# <p>p-content5</p>275# <p>p-content6</p>276# <p>p-content7</p>277# <panda id='panda'>panda-content</panda>278# <div>div-content<span>span-content</span></div>279# """280# soup=BeautifulSoup(html,'lxml')281# print(soup.find_all('p',limit=3))282# find():返回第一个结果283# find_parent():在当前元素的父节点中查找,并返回第一个284# find_parents():在当前元素的父节点中查找,并列表285# find_next_sibling():在当前元素的兄弟节点中查找(弟弟),并返回第一个286# find_next_siblings():在当前元素的兄弟节点中查找(弟弟),并返回列表287# find_previous_sibling():在当前元素的兄弟节点中查找(哥哥),并返回第一个288# find_previous_siblings():在当前元素的兄弟节点中查找(哥哥),并返回列表289# find_next():在当前元素的相邻节点中查找(向下),并返回第一个290# find_all_next():在当前元素的相邻节点中查找(向下),并返回列表291# find_previous():在当前元素的相邻节点中查找(向上),并返回第一个292# find_all_previous():在当前元素的相邻节点中查找(向上),并返回列表293# css选择器294# 通过标签查找295# html = """296# <html><head></head>297# <body>298# <p><b>p-content1</b></p>299# <p>p-content2</p>300# <p class='p-class'>p-content3</p>301# <p>p-content4</p>302# <p class='p-class'>p-content5</p>303# <p>p-content6</p>304# <p>p-content7</p>305# <panda id='panda'>panda-content</panda>306# <div>div-content<span>span-content</span></div>307# """308# soup = BeautifulSoup(html,'lxml')309# print(soup.select('p'))310# 通过类名查找311# print(soup.select('.p-class'))312# 通过id名查找313# print(soup.select('#panda'))314# 组合查找315# print(soup.select('body panda'))316# 通过属性查找...

Full Screen

Full Screen

test_html_in_out.py

Source:test_html_in_out.py Github

copy

Full Screen

1# Copyright: 2010 MoinMoin:ValentinJaniaut2# License: GNU GPL v2 (or any later version), see LICENSE.txt for details.3"""4MoinMoin - Tests for MoinMoin.converter.html_in and5 MoinMoin.converter.html_out.6 It will check that roundtrip conversion is working well.7"""8import StringIO9import re10import pytest11etree = pytest.importorskip('lxml.etree')12from MoinMoin.converter.html_in import Converter as HTML_IN13from MoinMoin.converter.html_out import Converter as HTML_OUT14from MoinMoin.util.tree import html, moin_page, xlink15from MoinMoin import log16logging = log.getLogger(__name__)17class Base(object):18 namespaces = {19 html.namespace: '',20 moin_page.namespace: '',21 xlink.namespace: 'xlink',22 }23 output_re = re.compile(r'\s+xmlns="[^"]+"')24 def handle_input(self, input, args):25 f = StringIO.StringIO()26 out = self.conv_html_dom(input, **args)27 out.write(f.write, namespaces=self.namespaces, )28 logging.debug("After the HTML_IN conversion : {0}".format(self.output_re.sub(u'', f.getvalue())))29 out = self.conv_dom_html(out, **args)30 f = StringIO.StringIO()31 out.write(f.write, namespaces=self.namespaces, )32 return self.output_re.sub(u'', f.getvalue())33 def do(self, input, path):34 string_to_parse = self.handle_input(input, args={})35 logging.debug("After the roundtrip : {0}".format(string_to_parse))36 print 'string_to_parse = %s' % string_to_parse37 tree = etree.parse(StringIO.StringIO(string_to_parse))38 assert (tree.xpath(path))39class TestConverter(Base):40 def setup_class(self):41 self.conv_html_dom = HTML_IN()42 self.conv_dom_html = HTML_OUT()43 def test_base(self):44 data = [45 ('<html><div><p>Test</p></div></html>',46 '/div/div[p="Test"]'),47 ('<html><div><p>First paragraph</p><h1>Title</h1><p><em>Paragraph</em></p></div></html>',48 '/div/div/p[2][em="Paragraph"]'),49 ('<html><div><p>First Line<br />Second line</p></div></html>',50 '/div/div/p[1]/br'),51 ('<div><p>Test</p></div>',52 '/div/div[p="Test"]'),53 ('<div><p class="class" title="title">Test</p></div>',54 '/div/div/p[@class="class"][@title="title"][text()="Test"]'),55 ]56 for i in data:57 yield(self.do, ) + i58 def test_title(self):59 data = [60 ('<html><h2>Test</h2></html>',61 '/div[h2="Test"]'),62 ('<html><h6>Test</h6></html>',63 '/div[h6="Test"]'),64 ]65 for i in data:66 yield (self.do, ) + i67 def test_basic_style(self):68 data = [69 ('<html><p><em>Test</em></p></html>',70 '/div/p[em="Test"]'),71 ('<html><p><i>Test</i></p></html>',72 '/div/p[em="Test"]'),73 ('<html><p><strong>Test</strong></p></html>',74 '/div/p[strong="Test"]'),75 ('<html><p><b>Test</b></p></html>',76 '/div/p[strong="Test"]'),77 ]78 for i in data:79 yield (self.do, ) + i80 def test_span(self):81 data = [82 ('<html><p><sub>sub</sub>script</p></html>',83 '/div/p[sub="sub"]'),84 ('<html><p><sup>super</sup>script</p></html>',85 '/div/p[sup="super"]'),86 ('<html><p><u>underline</u></p></html>',87 '/div/p[ins="underline"]'),88 ('<html><p><big>Test</big></p></html>',89 '/div/p/span[@class="moin-big"][text()="Test"]'),90 ('<html><p><small>Test</small></p></html>',91 '/div/p/span[@class="moin-small"][text()="Test"]'),92 ('<html><p><ins>underline</ins></p></html>',93 '/div/p[ins="underline"]'),94 ('<html><p><del>Test</del></p></html>',95 '/div/p[del="Test"]'),96 ('<html><p><s>Test</s></p></html>',97 '/div/p[del="Test"]'),98 ('<html><p><strike>Test</strike></p></html>',99 '/div/p[del="Test"]'),100 ]101 for i in data:102 yield (self.do, ) + i103 def test_span_html_element(self):104 data = [105 ('<html><p><abbr>Text</abbr></p></html>',106 '/div/p/span[@class="html-abbr"][text()="Text"]'),107 ('<html><p><acronym>Text</acronym></p></html>',108 '/div/p/span[@class="html-acronym"][text()="Text"]'),109 ('<html><p><address>Text</address></p></html>',110 '/div/p/span[@class="html-address"][text()="Text"]'),111 ('<html><p><dfn>Text</dfn></p></html>',112 '/div/p/span[@class="html-dfn"][text()="Text"]'),113 ('<html><p><kbd>Text</kbd></p></html>',114 '/div/p/span[@class="html-kbd"][text()="Text"]'),115 ]116 for i in data:117 yield (self.do, ) + i118 def test_link(self):119 data = [120 ('<html><p><a href="http:test">Test</a></p></html>',121 '/div/p/a[text()="Test"][@href="http:test"]'),122 ]123 for i in data:124 yield (self.do, ) + i125 def test_code(self):126 data = [127 ('<html><div><code>Code</code></div></html>',128 '/div/div[code="Code"]'),129 ('<html><div><samp>Code</samp></div></html>',130 '/div/div[code="Code"]'),131 ('<html><pre>Code</pre></html>',132 '/div[pre="Code"]'),133 ('<html><p><tt>Code</tt></p></html>',134 '/div/p[code="Code"]'),135 ]136 for i in data:137 yield (self.do, ) + i138 def test_list(self):139 data = [140 ('<html><div><ul><li>Item</li></ul></div></html>',141 '/div/div/ul[li="Item"]'),142 ('<html><div><ol><li>Item</li></ol></div></html>',143 '/div/div/ol[li="Item"]'),144 ('<html><div><ol type="A"><li>Item</li></ol></div></html>',145 '/div/div/ol[@class="moin-upperalpha-list"][li="Item"]'),146 ('<html><div><ol type="I"><li>Item</li></ol></div></html>',147 '/div/div/ol[@class="moin-upperroman-list"][li="Item"]'),148 ('<html><div><ol type="a"><li>Item</li></ol></div></html>',149 '/div/div/ol[@class="moin-loweralpha-list"][li="Item"]'),150 ('<html><div><ol type="i"><li>Item<li></ol></div></html>',151 '/div/div/ol[@class="moin-lowerroman-list"][li="Item"]'),152 ('<html><div><dl><dt>Label</dt><dd>Item</dd></dl></div></html>',153 '/div/div/dl[dt="Label"][dd="Item"]'),154 ('<html><div><dir><li>Item</li></dir></div></html>',155 '/div/div/ul[li="Item"]'),156 ('<div><ul><li>Item 1</li><p>Pouet</p><li>Item 2</li><li>Item 3</li></ul></div>',157 '/div/div/ul[li[1]="Item 1"][li[2]="Item 2"][li[3]="Item 3"]'),158 # Test for bug with line return and spaces159 ('<div><ul><li>\n Item 1</li>\n<li>\n Item 2</li>\n<li>\n Item 3</li>\n</ul></div>',160 '/div/div/ul[li[1]="\n Item 1"][li[2]="\n Item 2"][li[3]="\n Item 3"]'),161 ('<div><ol><li>\n Item 1</li>\n<li>\n Item 2</li>\n<li>\n Item 3</li>\n</ol></div>',162 '/div/div/ol[li[1]="\n Item 1"][li[2]="\n Item 2"][li[3]="\n Item 3"]'),163 ]164 for i in data:165 yield (self.do, ) + i166 def test_object(self):167 data = [168 # ('<html><div><img src="uri:test" /></div></html>',169 # '/page/body/div/object/@xlink:href="uri:test"'),170 ('<html><div><object data="href"></object></div></html>',171 '/div/div/object[@data="href"]'),172 ]173 for i in data:174 yield (self.do, ) + i175 def test_table(self):176 data = [177 ('<html><div><table><thead><tr><td>Header</td></tr></thead><tfoot><tr><td>Footer</td></tr></tfoot><tbody><tr><td>Cell</td></tr></tbody></table></div></html>',178 '/div/div/table[./thead/tr[td="Header"]][./tfoot/tr[td="Footer"]][./tbody/tr[td="Cell"]]'),179 ('<html><div><table><thead><tr><td>Header</td></tr></thead><tbody><tr><td>Cell</td></tr></tbody><tfoot><tr><td>Footer</td></tr></tfoot></table></div></html>',180 '/div/div/table[./thead/tr[td="Header"]][./tfoot/tr[td="Footer"]][./tbody/tr[td="Cell"]]'),181 ('<html><div><table><tbody><tr><td colspan="2">Cell</td></tr></tbody></table></div></html>',182 '/div/div/table/tbody/tr/td[text()="Cell"][@colspan="2"]'),183 ('<html><div><table><tbody><tr><td rowspan="2">Cell</td></tr></tbody></table></div></html>',184 '/div/div/table/tbody/tr/td[text()="Cell"][@rowspan="2"]'),185 # Test for bug with newline between cell186 ('<div><table>\n<tbody>\n<tr>\n<td>\n Cell 1:1</td>\n<td>\n Cell 1:2</td>\n</tr>\n<tr>\n<td>\n Cell 2:1</td>\n<td>\n Cell 2:2</td>\n</tr>\n</tbody>\n</table></div>',187 '/div/div/table/tbody[tr[1][td[1]="\n Cell 1:1"][td[2]="\n Cell 1:2"]][tr[2][td[1]="\n Cell 2:1"][td[2]="\n Cell 2:2"]]'),188 ]189 for i in data:...

Full Screen

Full Screen

DM_Bot.py

Source:DM_Bot.py Github

copy

Full Screen

1from selenium import webdriver2from selenium.webdriver.common.keys import Keys3import time4import random5import sys6import os7# * Messaging a particular set of poeple8def print_same_line(text):9 sys.stdout.write('\r')10 sys.stdout.flush()11 sys.stdout.write(text)12 sys.stdout.flush()13def delete_line(user):14 with open(os.path.join(sys.path[0], "potentional_list.txt"), "r+") as f:15 lines = f.readlines()16 f.seek(0)17 # to erase all data18 f.truncate()19 for line in lines:20 if line.strip("\n") != user:21 f.write(line)22class InstagramBot:23 def __init__(self, username, password):24 self.username = username25 self.password = password26 self.driver = webdriver.Chrome(27 executable_path=os.path.abspath('chromedriver.exe'))28 def closeBrowser(self):29 self.driver.close()30 def login(self):31 driver = self.driver32 driver.get("https://www.instagram.com/")33 time.sleep(1)34 # login_button = driver.find_element_by_xpath("//a[@href='/accounts/login/?source=auth_switcher']")35 # login_button.click()36 # time.sleep(2)37 user_name_elem = driver.find_element_by_xpath(38 "//input[@name='username']")39 user_name_elem.clear()40 user_name_elem.send_keys(self.username)41 passworword_elem = driver.find_element_by_xpath(42 "//input[@name='password']")43 passworword_elem.clear()44 passworword_elem.send_keys(self.password)45 passworword_elem.send_keys(Keys.RETURN)46 time.sleep(3)47 driver.get('https://www.instagram.com/')48 # driver.find_element_by_xpath("/html/body/div[1]/section/nav/div[2]/div/div/div[3]/div/div[1]/div/a/svg").click()49 time.sleep(2)50 driver.find_element_by_xpath(51 '/html/body/div[4]/div/div/div/div[3]/button[2] ').click()52 def like_photo(self, user):53 driver = self.driver54 time.sleep(2)55 driver.get("https://www.instagram.com/" + user + "/")56 time.sleep(2)57 # * Write your messages58 message1 = u'you have an Amazing feed \u2764'59 message2 = u'Check out my profile too'60 message3 = 'follow for follow'61 # follow the user62 try:63 driver.find_element_by_xpath(64 '/html/body/div[1]/section/main/div/header/section/div[1]/div[1]/span/span[1]/button').click()65 time.sleep(3)66 # message button67 driver.find_element_by_xpath(68 '/html/body/div[1]/section/main/div/header/section/div[1]/div[1]/div/button').click()69 time.sleep(2)70 driver.find_element_by_xpath(71 '/html/body/div[1]/section/div/div[2]/div/div/div[2]/div[2]/div/div[2]/div/div/div[2]/textarea').click()72 time.sleep(1)73 # driver.find_element_by_xpath('/html/body/div[4]/div/div/div[3]/button[2]').click()74 # time.sleep(1)75 driver.find_element_by_xpath(76 '/html/body/div[1]/section/div/div[2]/div/div/div[2]/div[2]/div/div[2]/div/div/div[2]/textarea').send_keys(message1)77 driver.find_element_by_xpath(78 '/html/body/div[1]/section/div/div[2]/div/div/div[2]/div[2]/div/div[2]/div/div/div[3]/button').click()79 time.sleep(1)80 driver.find_element_by_xpath(81 '/html/body/div[1]/section/div/div[2]/div/div/div[2]/div[2]/div/div[2]/div/div/div[2]/textarea').send_keys(message2)82 driver.find_element_by_xpath(83 '/html/body/div[1]/section/div/div[2]/div/div/div[2]/div[2]/div/div[2]/div/div/div[3]/button').click()84 time.sleep(1)85 driver.find_element_by_xpath(86 '/html/body/div[1]/section/div/div[2]/div/div/div[2]/div[2]/div/div[2]/div/div/div[2]/textarea').send_keys(message3)87 driver.find_element_by_xpath(88 '/html/body/div[1]/section/div/div[2]/div/div/div[2]/div[2]/div/div[2]/div/div/div[3]/button').click()89 time.sleep(1)90 driver.find_element_by_xpath(91 '/html/body/div[1]/section/div/div[2]/div/div/div[2]/div[1]/div/div/div[3]/button').click()92 driver.find_element_by_xpath(93 '/html/body/div[1]/section/div/div[2]/div/div/div[2]/div/div[2]/div[2]/div[1]/button').click()94 # gathering photos95 driver.get("https://www.instagram.com/" + user + "/")96 time.sleep(2)97 pic_hrefs = []98 try:99 driver.execute_script(100 "window.scrollTo(0, document.body.scrollHeight);")101 time.sleep(2)102 # get tags103 hrefs_in_view = driver.find_elements_by_tag_name('a')104 # finding relevant hrefs105 hrefs_in_view = [elem.get_attribute('href') for elem in hrefs_in_view106 if '.com/p/' in elem.get_attribute('href')]107 # building list of unique photos108 [pic_hrefs.append(href)109 for href in hrefs_in_view if href not in pic_hrefs]110 # print("Check: pic href length " + str(len(pic_hrefs)))111 except:112 pass113 # Liking photos114 i = 0115 while(i < 10):116 for pic_href in pic_hrefs[:11]:117 driver.get(pic_href)118 time.sleep(2)119 heart = driver.find_element_by_xpath(120 '//*[@class="_8-yf5 "]').get_attribute('aria-label')121 if heart == 'Like':122 try:123 # time.sleep(2)124 like = driver.find_element_by_xpath(125 '/html/body/div[1]/section/main/div/div[1]/article/div[2]/section[1]/span[1]/button')126 like.click()127 time.sleep(2)128 i += 1129 except Exception as e:130 time.sleep(2)131 else:132 i += 1133 continue134 delete_line(user)135 except:136 pass137if __name__ == "__main__":138 username = "" # * Enter your Username139 password = "" # * Enter your Password140 ig = InstagramBot(username, password)141 ig.login()142 user = [line.rstrip('\n') for line in open(143 os.path.join(sys.path[0], "potentional_list.txt"))]144 for i in user:...

Full Screen

Full Screen

test_target.py

Source:test_target.py Github

copy

Full Screen

1"""2 weasyprint.tests.test_target3 ----------------------------4 Test the CSS cross references using target-*() functions.5"""6from .testing_utils import FakeHTML, assert_no_logs7@assert_no_logs8def test_target_counter():9 document = FakeHTML(string='''10 <style>11 div:first-child { counter-reset: div }12 div { counter-increment: div }13 #id1::before { content: target-counter('#id4', div) }14 #id2::before { content: 'test ' target-counter('#id1' div) }15 #id3::before { content: target-counter(url(#id4), div, lower-roman) }16 #id4::before { content: target-counter('#id3', div) }17 </style>18 <body>19 <div id="id1"></div>20 <div id="id2"></div>21 <div id="id3"></div>22 <div id="id4"></div>23 ''')24 page, = document.render().pages25 html, = page._page_box.children26 body, = html.children27 div1, div2, div3, div4 = body.children28 before = div1.children[0].children[0].children[0]29 assert before.text == '4'30 before = div2.children[0].children[0].children[0]31 assert before.text == 'test 1'32 before = div3.children[0].children[0].children[0]33 assert before.text == 'iv'34 before = div4.children[0].children[0].children[0]35 assert before.text == '3'36@assert_no_logs37def test_target_counter_attr():38 document = FakeHTML(string='''39 <style>40 div:first-child { counter-reset: div }41 div { counter-increment: div }42 div::before { content: target-counter(attr(data-count), div) }43 #id2::before { content: target-counter(attr(data-count, url), div) }44 #id4::before {45 content: target-counter(attr(data-count), div, lower-alpha) }46 </style>47 <body>48 <div id="id1" data-count="#id4"></div>49 <div id="id2" data-count="#id1"></div>50 <div id="id3" data-count="#id2"></div>51 <div id="id4" data-count="#id3"></div>52 ''')53 page, = document.render().pages54 html, = page._page_box.children55 body, = html.children56 div1, div2, div3, div4 = body.children57 before = div1.children[0].children[0].children[0]58 assert before.text == '4'59 before = div2.children[0].children[0].children[0]60 assert before.text == '1'61 before = div3.children[0].children[0].children[0]62 assert before.text == '2'63 before = div4.children[0].children[0].children[0]64 assert before.text == 'c'65@assert_no_logs66def test_target_counters():67 document = FakeHTML(string='''68 <style>69 div:first-child { counter-reset: div }70 div { counter-increment: div }71 #id1-2::before { content: target-counters('#id4-2', div, '.') }72 #id2-1::before { content: target-counters(url(#id3), div, '++') }73 #id3::before {74 content: target-counters('#id2-1', div, '.', lower-alpha) }75 #id4-2::before {76 content: target-counters(attr(data-count, url), div, '') }77 </style>78 <body>79 <div id="id1"><div></div><div id="id1-2"></div></div>80 <div id="id2"><div id="id2-1"></div><div></div></div>81 <div id="id3"></div>82 <div id="id4">83 <div></div><div id="id4-2" data-count="#id1-2"></div>84 </div>85 ''')86 page, = document.render().pages87 html, = page._page_box.children88 body, = html.children89 div1, div2, div3, div4 = body.children90 before = div1.children[1].children[0].children[0].children[0]91 assert before.text == '4.2'92 before = div2.children[0].children[0].children[0].children[0]93 assert before.text == '3'94 before = div3.children[0].children[0].children[0]95 assert before.text == 'b.a'96 before = div4.children[1].children[0].children[0].children[0]97 assert before.text == '12'98@assert_no_logs99def test_target_text():100 document = FakeHTML(string='''101 <style>102 a { display: block; color: red }103 div:first-child { counter-reset: div }104 div { counter-increment: div }105 #id2::before { content: 'wow' }106 #link1::before { content: 'test ' target-text('#id4') }107 #link2::before { content: target-text(attr(data-count, url), before) }108 #link3::before { content: target-text('#id3', after) }109 #link4::before { content: target-text(url(#id1), first-letter) }110 </style>111 <body>112 <a id="link1"></a>113 <div id="id1">1 Chapter 1</div>114 <a id="link2" data-count="#id2"></a>115 <div id="id2">2 Chapter 2</div>116 <div id="id3">3 Chapter 3</div>117 <a id="link3"></a>118 <div id="id4">4 Chapter 4</div>119 <a id="link4"></a>120 ''')121 page, = document.render().pages122 html, = page._page_box.children123 body, = html.children124 a1, div1, a2, div2, div3, a3, div4, a4 = body.children125 before = a1.children[0].children[0].children[0]126 assert before.text == 'test 4 Chapter 4'127 before = a2.children[0].children[0].children[0]128 assert before.text == 'wow'129 assert len(a3.children[0].children[0].children) == 0130 before = a4.children[0].children[0].children[0]131 assert before.text == '1'132@assert_no_logs133def test_target_float():134 document = FakeHTML(string='''135 <style>136 a::after {137 content: target-counter('#h', page);138 float: right;139 }140 </style>141 <div><a id="span">link</a></div>142 <h1 id="h">abc</h1>143 ''')144 page, = document.render().pages145 html, = page._page_box.children146 body, = html.children147 div, h1 = body.children148 line, = div.children149 inline, = line.children150 text_box, after = inline.children151 assert text_box.text == 'link'...

Full Screen

Full Screen

Petclinic.py

Source:Petclinic.py Github

copy

Full Screen

1class PetObjects(object):2 ProjectName = 'Petclinic Test Automation'3 filename = 'notes'4 Release_Name = 'Petclinic'5 HomePage = {6 "Home": "xpath=//*[@id='main-navbar']/ul/li[1]/a",7 "Welcome": "xpath=/html/body/div/div/div[1]/div/img",8 "Spring": "xpath=/html/body/div/div/div[2]/div/div/img",9 "FullPage": "xpath=/html/body/div/div/div[1]/div"10 }11 FindOwners = {12 "FindOwnersLink": "xpath=//*[@id='main-navbar']/ul/li[3]/a",13 "Find Owners": "xpath=/html/body/div/div/h2",14 "Last name": "xpath=//*[contains(text(),'Last name')] | //*[contains(text(),'Last/First name')]",15 "Input": "xpath=//input[@id='lastName']",16 "FindOwnerButton": "xpath=//*[@id='search-owner-form']/div[2]/div/button"17 }18 AddingOwner = {19 "AddOwner": "xpath=/html/body/div/div/a",20 "New Owner": "xpath=/html/body/div/div/h2",21 "FirstName": "xpath=//*[@id='add-owner-form']/div[1]/div[1]/label",22 "FirstNameText": "xpath=//input[@id='firstName']",23 "Last Name": "xpath=//*[@id='add-owner-form']/div[1]/div[2]/label",24 "LastNameText": "xpath=//input[@id='lastName']",25 "Address": "xpath=//*[@id='add-owner-form']/div[1]/div[3]/label",26 "AddressText": "xpath=//input[@id='address']",27 "City": "xpath=//*[@id='add-owner-form']/div[1]/div[4]/label",28 "CityText": "xpath=//input[@id='city']",29 "Telephone": "xpath=//*[@id='add-owner-form']/div[1]/div[5]/label",30 "TelephoneNumber": "xpath=//input[@id='telephone']",31 "Add Owner": "xpath=//*[@id='add-owner-form']/div[2]/div/button",32 "Owner Information": "xpath=/html/body/div/div",33 "Pet and visits": "xpath=/html/body/div/div/h2[2]",34 "spring": "xpath=/html/body/div/div/div/div/div/img"35 }36 CheckingInformation = {37 "OwnerInformation": "xpath=/html/body/div/div",38 "Name": "xpath=/html/body/div/div/h2[1]",39 "Address": "xpath=/html/body/div/div/table[1]/tbody/tr[2]/th",40 "City": "xpath=/html/body/div/div/table[1]/tbody/tr[3]/th",41 "Telephone": "xpath=/html/body/div/div/table[1]/tbody/tr[4]/th"42 }43 AddingNewPet = {44 "Add New Pet": "xpath=/html/body/div/div/a[2]",45 "New Pet Display": "xpath=/html/body/div/div/h2",46 "Owner": "xpath=/html/body/div/div/form/div[1]/div[1]/label",47 "Name": "xpath=/html/body/div/div/form/div[1]/div[1]/div/span",48 "PetName": "xpath=//input[@id='name']",49 "Birth date": "xpath=/html/body/div/div/form/div[1]/div[3]/label",50 "BirthDate": "xpath=//input[@id='birthDate']",51 "Add pet": "xpath=/html/body/div/div/form/div[2]/div/button",52 "Type": "xpath=//*[@id='type']/option[3]",53 "Pet and Visits": "xpath=/html/body/div/div/h2[2]",54 "Valign": "xpath=/html/body/div/div/table[2]/tbody/tr/td[1]",55 "VisitDate": "xpath=/html/body/div/div/table[2]/tbody/tr/td[2]/table/thead/tr/th[1]",56 "Description": "xpath=/html/body/div/div/table[2]/tbody/tr/td[2]/table/thead/tr/th[2]",57 "EditPet": "xpath=/html/body/div/div/table[2]/tbody/tr/td[2]/table/tbody/tr/td[1]",58 "AddVisit": "xpath=/html/body/div/div/table[2]/tbody/tr/td[2]/table/tbody/tr/td[2]/a",59 "UpdatePet": "xpath=//*[@id='pet']/div[2]/div/button",60 "display": "xpath=/html/body/div[1]/div",61 "Description1": "xpath=//*[@id=description']",62 "Add Visit": "xpath=//*[@id='visit']/div[2]/div/button"63 }64 AddOwner = {65 "FirstName": "xpath=//*[@id='add-owner-form']/div[1]/div[1]/div/span[2]"66 }67 AddingPet = {68 "PetName": "xpath=/html/body/div/div/form/div[1]/div[2]/div/span[2]"69 }70 FailedInput = {71 "LastName": "xpath=//*[@id='lastNameGroup']/div/span/div/p"72 }73 EditingOwner = {74 "Edit Owner": "xpath=/html/body/div/div/a[1]",75 "Update Owner": "xpath=//*[@id='add-owner-form']/div[2]/div/button"76 }77 ValidateName = {78 "NameValidate": "xpath=//*[@id='ownersTable']/tbody/tr[38]/td[1]/a",79 "AddressValidate": "xpath=//*[@id='ownersTable']/tbody/tr[38]/td[2]",80 "Results": "xpath=/html/body/div/div"81 }...

Full Screen

Full Screen

test.py

Source:test.py Github

copy

Full Screen

1print "Content-type: text/html\n\n"2print """<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">3<html>4 <head>5 <title></title>6 <link rel="stylesheet" type="text/css" href="/css/winxp.blue.css" />7 <link rel="stylesheet" type="text/css" href="/css/tabs.css" />8 </head>9<body>10<div class="screenLayout">11<div class="headerContainer">12 <div class="pageHeader">13 <div>14 <a target="_blank" href="http://www.swsoft.com/plesk/" title="Plesk&trade;" class="topLogo"><img src="/img/common/logo.gif" name="logo" height="50" border="0" width="210" title="Plesk&trade;"></a>15 <div id="topTxtBlock">16 <span id="topCopyright"><a href="http://www.swsoft.com" target="_blank">&copy; Copyright 1999-2007, SWsoft Holdings, Ltd.<br/> All rights reserved</a></span>17 </div>18 </div>19 </div>20</div>21<div class="contentLayout">22 <div class="contentContainer">23 <div class="pageContent">24 <div class="pathBar"><a href="/index.html">Site Home Page</a> &gt;</div>25 <div class="screenTitle">Python possibilities test page</div>26 <br/>27 <div id="screenTabs">28 <div id="tabs">29 <ul>30 <li id="current" class="first"><a href="test.php"><span>Environment</span></a></li>31 </ul>32 </div>33 </div>34 <div class="tabContent">35 <p>This page allows to check the possibility to get the extension environment settings.</p>36 <div class="formContainer">37 <fieldset>38 <legend>Evironment</legend>39 40 <p>41 <table class="formFields" cellspacing="0" width="100%">42 <tr><td>43 <iframe src="test_info.py" height ="320px" width="100%"></iframe>44 </td></tr>45 </table>46 </p>47 48 </fieldset>49 </div>50 </div>51 </div>52 </div>53</div>54<div class="footerContainer">55 <div class="footDescription">This page is autogenerated by <a target="_blank" href="http://www.swsoft.com/en/products/plesk/">Plesk</a>&trade;</div>56 <div class="poweredBy"><a target="_blank" href="http://www.swsoft.com/en/products/plesk/"><img src="/img/common/pb_plesk.gif" title="Plesk&trade;"/></a></div>57 <div class="poweredBy"><a target="_blank" href="http://www.swsoft.com/en/products/virtuozzo/"><img src="/img/common/pb_virt.gif" title="Virtuozzo&trade;"/></a></div>58</div>59</div>60</body>...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1import { MockBuilder, MockRender, ngMocks } from 'ng-mocks';2import { MyComponent } from './my.component';3import { MyModule } from './my.module';4describe('MyComponent', () => {5 beforeEach(() => MockBuilder(MyComponent, MyModule));6 it('finds div', () => {7 const fixture = MockRender(MyComponent);8 expect(ngMocks.find('div[data-test]')).toBeDefined();9 expect(ngMocks.find('div[data-test="test"]')).toBeDefined();10 expect(ngMocks.find('div[data-test]', 'test')).toBeDefined();11 expect(ngMocks.find('div[data-test="test"]')).toBeDefined();12 expect(ngMocks.find('div[data-test]', 'test')).toBeDefined();13 expect(14 ngMocks.find('div[data-test="test"]', {15 }),16 ).toBeDefined();17 expect(18 ngMocks.find('div[data-test]', {19 }),20 ).toBeDefined();21 expect(22 ngMocks.find('div[data-test="test"]', {23 }),24 ).toBeDefined();25 expect(26 ngMocks.find('div[data-test]', {27 }),28 ).toBeDefined();29 expect(30 ngMocks.find('div[data-test="test"]', {31 }),32 ).toBeDefined();33 expect(34 ngMocks.find('div[data-test]', {35 }),36 ).toBeDefined();37 expect(38 ngMocks.find('div[data-test="test"]', {39 }),40 ).toBeDefined();41 expect(42 ngMocks.find('div[data-test]', {

Full Screen

Using AI Code Generation

copy

Full Screen

1import { MockBuilder, MockRender } from 'ng-mocks';2import { AppComponent } from './app.component';3import { AppModule } from './app.module';4beforeEach(() => MockBuilder(AppComponent, AppModule));5it('renders the component', () => {6 const fixture = MockRender(AppComponent);7 expect(fixture.point.componentInstance).toBeDefined();8});9import { MockBuilder, MockInstance } from 'ng-mocks';10import { AppComponent } from './app.component';11import { AppModule } from './app.module';12beforeEach(() => MockBuilder(AppComponent, AppModule));13it('renders the component', () => {14 const component = MockInstance(AppComponent);15 expect(component).toBeDefined();16});

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run ng-mocks automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful