程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

How do I use Python to get the phone number and QQ of girls in the whole school? Technical flirtation

編輯:Python

Preface :

This is not technically difficult , People who understand crawlers and programmers can write in the language they learn

It's just the existence of many security problems , It really affects our lives ,

I hope you can realize the rules of some websites' background passwords and their own security

To put it simply , It's the laziness of programmers , Let users' information be exposed on the Internet

And a little bit more :

Hope is contacting python, And students who are about to give up their studies , Try another idea ,

Try reptiles , This accumulation of a sense of achievement , It can slowly improve your confidence

Preparation before the reptile starts :

  • python2.7 The library files (xlwt,urllib2,BeautifulSoup4,xlrd)

How to install library files :

It's best in your python2.7/script/ Open below power shell( Sure shift+ Right click ) Execute the following :

Install library files :


Observe the website structure ( Password rule ):

  • First of all, this rule is for sophomores and graduated password rules without adding verification code ( In fact, adding a verification code is useless , Just add the climbing threshold ) The rule is user name == password

eligible

  • The user information here should not care about these details ( Mosaic ) Hazy beauty has always been my pursuit

Specific ideas : Simulated landing 》 Make student ID rules 》 Information Service ( Crawling )==》 Deposit in xls Simulated landing : Because we use crawlers to get information , Each visit ,

  • It must be after logging in that you can access our information ==》 Simulate login when we use script to visit the next page , Need one cookie Information , like , When you open qq Space , In fact, I want Tencent to submit its own information , And our information exists cookie in python in cookie Maintain session access :

  • Simulated landing

Specific website is not shared , Avoid unnecessary trouble

  • List of student numbers

  • Access to user information

What is used here is beautifulsoup library

  • write in xls( This is the idea ) Functions for testing

Because of the coding problem when writing , Cannot write Chinese

1. Taking action : Add delayed access : time.sleep(1) Because crawlers don't visit people the same , The visit will be quick , This can avoid being sealed ip And avoid bringing bad effects to the site

End of program execution :

Partial screenshots : There's a picture, there's a truth , Avoid ignorant spurts

Student ID rules are easy to find , In this way, you can get half of the school call and qq La , As for what can be done , Make up your own brain ...

About Python Technology reserve

Learn from good examples Python Whether it's employment or sideline, it's good to make money , But learn to Python Still have a learning plan . Finally, let's share a complete set of Python Learning materials , For those who want to learn Python Let's have a little help !

One 、Python Learning routes in all directions

Python All directions are Python Sort out the common technical points , Form a summary of knowledge points in various fields , The use of it is , You can find the corresponding learning resources according to the above knowledge points , Make sure you learn more comprehensively .

Two 、 Learning software

If a worker wants to do a good job, he must sharpen his tools first . Study Python Common development software is here , It saves you a lot of time .

3、 ... and 、 Getting started video

When we were watching videos to learn , You can't just move your eyes and brain without hands , A more scientific way to learn is to use them after understanding , At this time, the hand training program is very suitable .

Four 、 Practical cases

Optical theory is useless , Learn to knock together , Do it , Can you apply what you have learned to practice , At this time, we can make some practical cases to learn .

5、 ... and 、 Interview information

We learn Python Must be to find a well paid job , The following interview questions are from Ali 、 tencent 、 The latest interview materials of big Internet companies such as byte , And the leader Ali gave an authoritative answer , After brushing this set of interview materials, I believe everyone can find a satisfactory job .


This full version of Python A full set of learning materials has been uploaded CSDN, Friends can scan the bottom of wechat if necessary CSDN The official two-dimensional code is free 【 Guarantee 100% free


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved