- Python之selenium,使用webdriver模拟登录网站(含验证码)
自动化测试 老司机
软件测试自动化测试pythonselenium功能测试压力测试测试工具程序人生
一、前言前段时间做了一个小项目,其中有一段需要自动获取网站后台的数据,但是这个网站没有任何提供给开发者的API,所以只能靠自己去探索。起初想着用发送请求的方式去模拟登陆,获取cookies,从而再获取网站后台数据,但是因为自己太菜了一些原因,放弃了这个方法。后来想到使用webdriver调用浏览器来模拟登陆,发现操作起来简单很多,而且可以达到同样的效果,于是便有了这篇文章。二、准备工作需要下载和安
- 2023-01-26 JS设计模式-单例模式:单例模式的原理和实现,懒汉模式和饿汉模式,单例模式实现登录框
前端OnTheRun
笔记js单例模式设计模式jsjavascript
文章目录1.什么是单例模式?介绍特点结构2.如何实现一个单例模式?思路实现代码3.单例模式的优缺点4.懒汉模式和饿汉模式懒汉模式:一开始不会实例化,什么时候用才new出来实例化饿汉模式:一开始类加载时就实例化并创建单例对象懒汉模式和饿汉模式的对比5.单例模式的常见应用场景6.单例模式模拟登录框1.什么是单例模式?介绍单例模式是最简单的设计模式之一,属于创建型模式,单例模式提供了一种创建对象的最佳方
- 爬爬爬——qq模拟登录,古诗文网模拟登录并爬取内容(cookie)
a2488220557
学习爬虫csshtml自动化
cookie——可以理解为,记录为登录状态。如果在登录一个网站之后,想拿到信息发现404了,就是没有加cookie在这个header里。下图加了cookie和没有加的对比(我是用了selenuim自动化登录的):下面是加了的这个就进入了。下面是古诗文网的登录和获取。importtimeimportddddocrimportrequestsfromseleniumimportwebdriverfro
- python从入门到精通(二十二):python爬虫框架使用
HACKNOE
pythonpythonpycharm
selenium自动化scrapy框架pyspider框架爬虫验证码动态渲染页面爬取模拟登录AutoScraper
- Python爬虫:安全与会话管理
web安全工具库
网络爬虫python爬虫安全
源码分享https://docs.qq.com/sheet/DUHNQdlRUVUp5Vll2?tab=BB08J2在进行网站数据抓取时,会话管理是保持与目标网站通信连续性的一种机制。这对于模拟登录、保持用户状态、维护cookie等场景至关重要。同时,安全性也是我们不可忽视的一个方面。本文将介绍会话管理的基础并提供一些安全措施,以及相关的代码示例。会话管理基础Python中,requests库是处
- 逆向模拟登录
林小果呀
python爬虫爬虫逆向
文章目录逆向模拟登录案例介绍滑块验证思路分析代码实现加密函数获取uid与cookies构建slideInfo并加密模拟完成滑块验证结果获取验证码思路分析代码整合获取bella发送请求代码总结登录逆向模拟登录案例介绍网站:https://user.qunar.com/passport/login.jsp用爬虫模拟完成滑块验证+获取验证码并登录滑块验证思路分析1)抓包可得在发送验证码前需要先完成滑动验
- python scrapy 模拟登录(使用selenium自动登录)
SkTj
常用1、scrapystartprojectsi放chromedriver.exe到si/si文件夹里2、visettings.pyUSER_AGENT='Mozilla/5.0(Macintosh;IntelMacOSX10_8_3)AppleWebKit/536.5(KHTML,likeGecko)Chrome/19.0.1084.54Safari/536.5'ROBOTSTXT_OBEY=F
- 提取Scrapy 爬虫概念
杨传池chris
(1)Scrapy的基本架构图和原理(2)模拟登录(3)HTML和XPath(4)爬取动态网页(6)爬取移动应用
- 电子科技大学信息门户模拟登录
MrYun
首先抓包或者按下F12进入浏览器开发者模式进行分析:2018-1-25(1).jpg由这张图我们可以得出我们填写完学号和密码后post的表单包含的内容有username,password,lt,execution,eventld,rmShown。而execution,_eventId,rmShown都是常量,分别为'execution':'e1s1','_eventId':'submit','rm
- 爬虫框架Scrapy之模拟登录淘宝
whele
模拟登录淘宝Selenium+PhantomJSfromseleniumimportwebdriverdriver=webdriver.PhantomJS()driver.get(“https://login.taobao.com/member/login.jhtml“)driver.find_element_by_id("TPL_username_1").clear()driver.find_e
- vue基础案例
寒舞233
vue经验分享vue.js
文章目录后台管理案例一、安装和配置路由二、基于路由渲染登录组件三、模拟登录功能四、后台主页基础布局五、退出登录并控制访问权限六、子路由嵌套显示七、点击进入用户详情页八、升级用户详情页的路由路由path的注意点扩展:控制页面的权限黑马头条一、初始化①创建并梳理项目结构②安装和配置Vant组件③使用Tabber组件⑤使用Navbar组件⑥覆盖Navbar的默认样式二、文章列表①.文章列表数据请求方式请
- selenium-模拟登录QQ空间(附模拟滑动验证码)
小枫编程
爬虫pythonpython爬虫
模拟滑动验证码代码:#获取iframe-id,切换浏览器标签定位的作用域bro.switch_to.frame('tcaptcha_iframe')div=bro.find_element(By.ID,'tcaptcha_drag_thumb')#动作链action=ActionChains(bro)#点击长按指定的标签action.click_and_hold(div)#水平拖动170xp位置a
- web自动化实现登录的几种方式
SuperStar77
自动化技术前端自动化python
目录前言一、python+unittest框架实现登录功能二、python+selenium实现登录功能三、python+requests库实现登录功能前言今天主要想介绍python语言+不同的自动化测试框架的结合方式来模拟登录功能。想了解自动化测试框架的同学不要错过哦!一、python+unittest框架实现登录功能1.封装公共方法在common目录下封装方法,具体代码如下:importreq
- 全网通用Python点赞器
人帝
pythonjava前端
本文将为你介绍一款点赞机器人,最简单易理解的核心逻辑。全文涉及的伪代码,使用Python编写,由于是伪代码的原因,不懂Python,你也能看懂。本篇博客试用场景本次点赞机器人,主要面向电脑上的Web站点,不涉及APP端。点赞机器人核心逻辑模拟点击操作,触发点赞,喜欢等操作。实现点赞操作前,还有一步重要的代码实现,模拟登录。因此,点赞机器人的基本需求如下:模拟登录;进行点赞;对该需求进行扩展后,存在
- 模拟账号登录
海人为记
创建用户类(User),定义用户名(username)和密码(password)属性.创建本地文件,写入几个用户名密码,以","分割模拟登录,启动系统,提示请您输入用户名密码,如果成功,提示登录成功,如果用户名不存在,提示用户注册,输入y进入注册,请用户输入用户名密码,对比本地文件,如果用户名不重复则注册成功,否则提示失败,并重新注册如果是密码错误,提示用户重置密码,输入y,进入修改密,两次密码一
- 【Java】使用Java实现爬虫
Do_GH
Javajava爬虫
文章目录使用Java实现爬虫一、HttpClient实现模拟HTTP访问1.1HttpClient1.2引入依赖1.3创建简单的请求操作1.3.1创建实例1.3.2Jsoup应用1.4爬取过程中可能出现的问题1.4.1JS异步加载问题1.4.2反爬技术的影响1.5爬取需要登录的页面1.5.1在header中直接携带Cookie1.5.2模拟登录自动获取Cookie二、HtmlUtil实现JS异步加
- 2020-07-17
MadDog_47ed
第26讲:模拟登录爬取实战案例2020/04/26崔庆才第26讲:模拟登录爬取实战案例大小7.29M时长12:38看视频在上一课时我们了解了网站登录验证和模拟登录的基本原理。网站登录验证主要有两种实现,一种是基于Session+Cookies的登录验证,另一种是基于JWT的登录验证,那么本课时我们就通过两个实例来分别讲解这两种登录验证的分析和模拟登录流程。准备工作在本课时开始之前,请你确保已经做好
- Java使用selenium模拟登录并获取token
冰之杍
【Java】javaseleniumlinuxcentos
Java使用selenium模拟登录并获取token需求背景登陆流程分析第一次尝试与思考采用Java使用selenium模拟登录centos7安装Chrome浏览器centos7安装GNOME界面准备linux下的chromedriver驱动编写Java程序完成登陆和获取token的逻辑执行Java程序进行测试获取token拿到token后,就可以进行后续的一些接口调用测试http直接调用的方式也
- 爬虫之牛刀小试(六):爬取BOSS网站招聘的内容
从零开始的奋豆
爬虫爬虫
今天决定再次尝试一下seleniumBOSS网站想要找到我们感兴趣的职位,随便举个例子吧,比如家教啥的搜一下找到我们感兴趣的内容接着尝试用selenium模拟登录,如下所示:接着找到对应的位置让selenium自己干就行了。最后的代码如下:fromselenium.webdriver.common.keysimportKeysimportrefromseleniumimportwebdriverf
- 银河金汇模拟登录
_weepie
业务需要登录一个有意思的网站,适合初学逆向JS和图片切割识别的童鞋目标网站:http://yhjh.chinastock.com.cn/yhwz/managemoney/userLogin.jsplogin页面1、密码框安全键盘,所以selenium之类模拟输入账号密码就无法用上了首先找登录入口:入口和我们平时常见的CryptoJS库差不多啦,调试就完事了,扣出来代码差不多3000多行2、验证码相
- python爬虫登录网站_python爬虫之scrapy模拟登录
weixin_39827589
python爬虫登录网站
背景:初来乍到的pythoner,刚开始的时候觉得所有的网站无非就是分析HTML、json数据,但是忽略了很多的一个问题,有很多的网站为了反爬虫,除了需要高可用代理IP地址池外,还需要登录。例如知乎,很多信息都是需要登录以后才能爬取,但是频繁登录后就会出现验证码(有些网站直接就让你输入验证码),这就坑了,毕竟运维同学很辛苦,该反的还得反,那我们怎么办呢?这不说验证码的事儿,你可以自己手动输入验证,
- python scrapy 爬取学习问答网站
Dwlufvex
pythonpython
废话不多说,直接入正题。关于模拟登录,另一篇再讲解(这篇写太多了)我们先来分析好页面。首先打开知乎,点击进入首页的随便一个问答可以看到url是这样的观察url可以发现question有一个id,answer也同样有退出来随便再点一个问答,验证我们的想法答案显而易见但一篇问答,总不会只有一个答案answer是吧,一个问题有很多答案,那么这个url显示的answer_id是什么呢?我们猜想可能是看到
- Python_scrapy(知乎问答爬取
小枫编程
Mysql爬虫pythonscrapy前端
***本文章为个人记录***目录一、模拟登录知乎二、提取知乎question页面url三、提取question页面具体数据四、提取answer页面具体数据五、items.py的编写六、pipelines的编写七、Mysql数据库存储结果一、模拟登录知乎(第一次运行程序)先模拟登录->保存cookie(其次运行程序)->运行已保存的cookie模拟登录时没有做验证码处理,所以延时10秒手动通过验证码
- Python--爬虫--requests进阶,cookie/session模拟登录
等黄昏等你来
爬虫Python网络爬虫爬虫python
目录一、原理二、实际操作三、结果四、问题与总结一、原理以下内容为使用requests库发送请求,使用cookie/session模拟登录(并且登录时只需输入账号与密码)。我们在使用搜索引擎访问网页时,会向访问的网页发送请求,被请求的网页的服务器对请求进行处理(无异常),会返回请求的数据。在搜索引擎发送的请求包中,存在请求头:RequestsHeaders(关键),携带的部分参数如下:authori
- python爬虫登录有验证码_python网络爬虫——requests高阶部分:模拟登录与验证码处理...
weixin_39591720
python爬虫登录有验证码
cookie的作用,服务器使用cookie记录客户端的状态:经典:免密登录服务端创建,客户端存储有有效时长,动态变化引入有些时候,我们在使用爬虫程序去爬取一些用户相关信息的数据(爬取张三“人人网”个人主页数据)时,如果使用之前requests模块常规操作时,往往达不到我们想要的目的,例如:importrequestsif__name__=="__main__":#张三人人网个人信息页面的urlur
- python模拟登录,获得cookies,携带cookies
longfei815
案例pythonpython开发语言爬虫
python代码:requests请求:importrequests#模拟登陆的入口url='https://passport.17k.com/ck/user/login'#携带请求参数data={'loginName':'你的账号','password':'你的密码',}headers={'User-Agent':'Mozilla/5.0(WindowsNT6.1;Win64;x64)Apple
- 大数据人工智能在线实习项目:某实习网站招聘信息采集与分析
泰迪智能科技
大数据在线实习项目大数据人工智能
01前置课程Python编程基础Python网络爬虫实战Python爬虫环境与爬虫简介网页前端基础简单静态网页爬取常规动态网页爬取模拟登录Python数据分析与应用、可视化数据分析概述Numpy数值计算Pandas统计分析与数据预处理Matplotlib可视化Pyecharts绘图02师傅带练泰迪内推平台招聘信息采集与分析通过爬取泰迪内推网站全国范围内与数据相关岗位的招聘信息,对职位信息进行分析挖
- AOP切面逻辑实现后,原有正常业务代码失效?
舒一笑
SpringBootJavaAOP
问题代码展示@Override@Around("@annotation(sessionChange)")publicvoidaroundSessionChange(SessionChangesessionChange){SessionChangeAspect.super.aroundSessionChange(sessionChange);}/***模拟登录*@return*/@GetMappin
- Java SSH最新的可行的模拟登录163,126,yeah,tom,sina,sohu等邮箱,并且解析出好友列表
sl514
Javajavasshstringexceptionloginclass
这边只列举出163的其他的可以联系本人购买价格面议可免费升级。需要的给我发邮件:
[email protected];importjava.io.InputStream;importjava.util.ArrayList;importjava.util.List;importjava.util.regex.Mat
- 逆向一个Go程序
metabit
#具象的Gogolang开发语言后端
前奏事先声明,自导自演,纯属为了演示基本的逆向思维用Go写一段模拟登录的代码:packagemainimport("fmt")funcmain(){pass:=""fmt.Print("inputpassword:")fmt.Scan(&pass)ifpass=="hello"{fmt.Println("loginsuccessfully!")}else{fmt.Println("loginfai
- mongodb3.03开启认证
21jhf
mongodb
下载了最新mongodb3.03版本,当使用--auth 参数命令行开启mongodb用户认证时遇到很多问题,现总结如下:
(百度上搜到的基本都是老版本的,看到db.addUser的就是,请忽略)
Windows下我做了一个bat文件,用来启动mongodb,命令行如下:
mongod --dbpath db\data --port 27017 --directoryperdb --logp
- 【Spark103】Task not serializable
bit1129
Serializable
Task not serializable是Spark开发过程最令人头疼的问题之一,这里记录下出现这个问题的两个实例,一个是自己遇到的,另一个是stackoverflow上看到。等有时间了再仔细探究出现Task not serialiazable的各种原因以及出现问题后如何快速定位问题的所在,至少目前阶段碰到此类问题,没有什么章法
1.
package spark.exampl
- 你所熟知的 LRU(最近最少使用)
dalan_123
java
关于LRU这个名词在很多地方或听说,或使用,接下来看下lru缓存回收的实现
1、大体的想法
a、查询出最近最晚使用的项
b、给最近的使用的项做标记
通过使用链表就可以完成这两个操作,关于最近最少使用的项只需要返回链表的尾部;标记最近使用的项,只需要将该项移除并放置到头部,那么难点就出现 你如何能够快速在链表定位对应的该项?
这时候多
- Javascript 跨域
周凡杨
JavaScriptjsonp跨域cross-domain
 
- linux下安装apache服务器
g21121
apache
安装apache
下载windows版本apache,下载地址:http://httpd.apache.org/download.cgi
1.windows下安装apache
Windows下安装apache比较简单,注意选择路径和端口即可,这里就不再赘述了。 2.linux下安装apache:
下载之后上传到linux的相关目录,这里指定为/home/apach
- FineReport的JS编辑框和URL地址栏语法简介
老A不折腾
finereportweb报表报表软件语法总结
JS编辑框:
1.FineReport的js。
作为一款BS产品,browser端的JavaScript是必不可少的。
FineReport中的js是已经调用了finereport.js的。
大家知道,预览报表时,报表servlet会将cpt模板转为html,在这个html的head头部中会引入FineReport的js,这个finereport.js中包含了许多内置的fun
- 根据STATUS信息对MySQL进行优化
墙头上一根草
status
mysql 查看当前正在执行的操作,即正在执行的sql语句的方法为:
show processlist 命令
mysql> show global status;可以列出MySQL服务器运行各种状态值,我个人较喜欢的用法是show status like '查询值%';一、慢查询mysql> show variab
- 我的spring学习笔记7-Spring的Bean配置文件给Bean定义别名
aijuans
Spring 3
本文介绍如何给Spring的Bean配置文件的Bean定义别名?
原始的
<bean id="business" class="onlyfun.caterpillar.device.Business">
<property name="writer">
<ref b
- 高性能mysql 之 性能剖析
annan211
性能mysqlmysql 性能剖析剖析
1 定义性能优化
mysql服务器性能,此处定义为 响应时间。
在解释性能优化之前,先来消除一个误解,很多人认为,性能优化就是降低cpu的利用率或者减少对资源的使用。
这是一个陷阱。
资源时用来消耗并用来工作的,所以有时候消耗更多的资源能够加快查询速度,保持cpu忙绿,这是必要的。很多时候发现
编译进了新版本的InnoDB之后,cpu利用率上升的很厉害,这并不
- 主外键和索引唯一性约束
百合不是茶
索引唯一性约束主外键约束联机删除
目标;第一步;创建两张表 用户表和文章表
第二步;发表文章
1,建表;
---用户表 BlogUsers
--userID唯一的
--userName
--pwd
--sex
create
- 线程的调度
bijian1013
java多线程thread线程的调度java多线程
1. Java提供一个线程调度程序来监控程序中启动后进入可运行状态的所有线程。线程调度程序按照线程的优先级决定应调度哪些线程来执行。
2. 多数线程的调度是抢占式的(即我想中断程序运行就中断,不需要和将被中断的程序协商)
a) 
- 查看日志常用命令
bijian1013
linux命令unix
一.日志查找方法,可以用通配符查某台主机上的所有服务器grep "关键字" /wls/applogs/custom-*/error.log
二.查看日志常用命令1.grep '关键字' error.log:在error.log中搜索'关键字'2.grep -C10 '关键字' error.log:显示关键字前后10行记录3.grep '关键字' error.l
- 【持久化框架MyBatis3一】MyBatis版HelloWorld
bit1129
helloworld
MyBatis这个系列的文章,主要参考《Java Persistence with MyBatis 3》。
样例数据
本文以MySQL数据库为例,建立一个STUDENTS表,插入两条数据,然后进行单表的增删改查
CREATE TABLE STUDENTS
(
stud_id int(11) NOT NULL AUTO_INCREMENT,
- 【Hadoop十五】Hadoop Counter
bit1129
hadoop
1. 只有Map任务的Map Reduce Job
File System Counters
FILE: Number of bytes read=3629530
FILE: Number of bytes written=98312
FILE: Number of read operations=0
FILE: Number of lar
- 解决Tomcat数据连接池无法释放
ronin47
tomcat 连接池 优化
近段时间,公司的检测中心报表系统(SMC)的开发人员时不时找到我,说用户老是出现无法登录的情况。前些日子因为手头上 有Jboss集群的测试工作,发现用户不能登录时,都是在Tomcat中将这个项目Reload一下就好了,不过只是治标而已,因为大概几个小时之后又会 再次出现无法登录的情况。
今天上午,开发人员小毛又找到我,要我协助将这个问题根治一下,拖太久用户难保不投诉。
简单分析了一
- java-75-二叉树两结点的最低共同父结点
bylijinnan
java
import java.util.LinkedList;
import java.util.List;
import ljn.help.*;
public class BTreeLowestParentOfTwoNodes {
public static void main(String[] args) {
/*
* node data is stored in
- 行业垂直搜索引擎网页抓取项目
carlwu
LuceneNutchHeritrixSolr
公司有一个搜索引擎项目,希望各路高人有空来帮忙指导,谢谢!
这是详细需求:
(1) 通过提供的网站地址(大概100-200个网站),网页抓取程序能不断抓取网页和其它类型的文件(如Excel、PDF、Word、ppt及zip类型),并且程序能够根据事先提供的规则,过滤掉不相干的下载内容。
(2) 程序能够搜索这些抓取的内容,并能对这些抓取文件按照油田名进行分类,然后放到服务器不同的目录中。
- [通讯与服务]在总带宽资源没有大幅增加之前,不适宜大幅度降低资费
comsci
资源
降低通讯服务资费,就意味着有更多的用户进入,就意味着通讯服务提供商要接待和服务更多的用户,在总体运维成本没有由于技术升级而大幅下降的情况下,这种降低资费的行为将导致每个用户的平均带宽不断下降,而享受到的服务质量也在下降,这对用户和服务商都是不利的。。。。。。。。
&nbs
- Java时区转换及时间格式
Cwind
java
本文介绍Java API 中 Date, Calendar, TimeZone和DateFormat的使用,以及不同时区时间相互转化的方法和原理。
问题描述:
向处于不同时区的服务器发请求时需要考虑时区转换的问题。譬如,服务器位于东八区(北京时间,GMT+8:00),而身处东四区的用户想要查询当天的销售记录。则需把东四区的“今天”这个时间范围转换为服务器所在时区的时间范围。
- readonly,只读,不可用
dashuaifu
jsjspdisablereadOnlyreadOnly
readOnly 和 readonly 不同,在做js开发时一定要注意函数大小写和jsp黄线的警告!!!我就经历过这么一件事:
使用readOnly在某些浏览器或同一浏览器不同版本有的可以实现“只读”功能,有的就不行,而且函数readOnly有黄线警告!!!就这样被折磨了不短时间!!!(期间使用过disable函数,但是发现disable函数之后后台接收不到前台的的数据!!!)
- LABjs、RequireJS、SeaJS 介绍
dcj3sjt126com
jsWeb
LABjs 的核心是 LAB(Loading and Blocking):Loading 指异步并行加载,Blocking 是指同步等待执行。LABjs 通过优雅的语法(script 和 wait)实现了这两大特性,核心价值是性能优化。LABjs 是一个文件加载器。RequireJS 和 SeaJS 则是模块加载器,倡导的是一种模块化开发理念,核心价值是让 JavaScript 的模块化开发变得更
- [应用结构]入口脚本
dcj3sjt126com
PHPyii2
入口脚本
入口脚本是应用启动流程中的第一环,一个应用(不管是网页应用还是控制台应用)只有一个入口脚本。终端用户的请求通过入口脚本实例化应用并将将请求转发到应用。
Web 应用的入口脚本必须放在终端用户能够访问的目录下,通常命名为 index.php,也可以使用 Web 服务器能定位到的其他名称。
控制台应用的入口脚本一般在应用根目录下命名为 yii(后缀为.php),该文
- haoop shell命令
eksliang
hadoophadoop shell
cat
chgrp
chmod
chown
copyFromLocal
copyToLocal
cp
du
dus
expunge
get
getmerge
ls
lsr
mkdir
movefromLocal
mv
put
rm
rmr
setrep
stat
tail
test
text
- MultiStateView不同的状态下显示不同的界面
gundumw100
android
只要将指定的view放在该控件里面,可以该view在不同的状态下显示不同的界面,这对ListView很有用,比如加载界面,空白界面,错误界面。而且这些见面由你指定布局,非常灵活。
PS:ListView虽然可以设置一个EmptyView,但使用起来不方便,不灵活,有点累赘。
<com.kennyc.view.MultiStateView xmlns:android=&qu
- jQuery实现页面内锚点平滑跳转
ini
JavaScripthtmljqueryhtml5css
平时我们做导航滚动到内容都是通过锚点来做,刷的一下就直接跳到内容了,没有一丝的滚动效果,而且 url 链接最后会有“小尾巴”,就像#keleyi,今天我就介绍一款 jquery 做的滚动的特效,既可以设置滚动速度,又可以在 url 链接上没有“小尾巴”。
效果体验:http://keleyi.com/keleyi/phtml/jqtexiao/37.htmHTML文件代码:
&
- kafka offset迁移
kane_xie
kafka
在早前的kafka版本中(0.8.0),offset是被存储在zookeeper中的。
到当前版本(0.8.2)为止,kafka同时支持offset存储在zookeeper和offset manager(broker)中。
从官方的说明来看,未来offset的zookeeper存储将会被弃用。因此现有的基于kafka的项目如果今后计划保持更新的话,可以考虑在合适
- android > 搭建 cordova 环境
mft8899
android
1 , 安装 node.js
http://nodejs.org
node -v 查看版本
2, 安装 npm
可以先从 https://github.com/isaacs/npm/tags 下载 源码 解压到
- java封装的比较器,比较是否全相同,获取不同字段名字
qifeifei
非常实用的java比较器,贴上代码:
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import net.sf.json.JsonConfig;
i
- 记录一些函数用法
.Aky.
位运算PHP数据库函数IP
高手们照旧忽略。
想弄个全天朝IP段数据库,找了个今天最新更新的国内所有运营商IP段,copy到文件,用文件函数,字符串函数把玩下。分割出startIp和endIp这样格式写入.txt文件,直接用phpmyadmin导入.csv文件的形式导入。(生命在于折腾,也许你们觉得我傻X,直接下载人家弄好的导入不就可以,做自己的菜鸟,让别人去说吧)
当然用到了ip2long()函数把字符串转为整型数
- sublime text 3 rust
wudixiaotie
Sublime Text
1.sublime text 3 => install package => Rust
2.cd ~/.config/sublime-text-3/Packages
3.mkdir rust
4.git clone https://github.com/sp0/rust-style
5.cd rust-style
6.cargo build --release
7.ctrl