I have been writing Python crawlers and python gadgets in my spare time for more than two years. Here I recommend some video tutorials and article tutorials that I think are better when studying. They are purely personal suggestions. Don't spray them if you don't like them
catalogue
Data section
The best thing for self-study is to do it yourself. Find what you want to use. Grammar articles are recommended Python 3 rookie tutorial
It's good to learn Python well, whether in employment or sideline, but to learn python, you still need to have a learning plan. Finally, I'll share a full set of Python learning materials for free to give some help to those who want to learn Python!
1, Python learning routes in all directions
All directions of Python is to sort out the commonly used technical points of Python and form a summary of knowledge points in various fields. Its purpose is that you can find corresponding learning resources according to the above knowledge points to ensure that you learn more comprehensively.
2, Learning software
If a worker wants to do well, he must sharpen his tools first. The commonly used development software for learning Python is here, which saves you a lot of time.
3, Getting started video
When we watch videos, we can't just move our eyes and brain without hands. The more scientific learning method is to use them after understanding. At this time, the hand training project is very suitable.
4, Actual combat cases
Optical theory is useless. We should learn to knock together and practice, so as to apply what we have learned to practice. At this time, we can make some practical cases to learn.
5, Interview materials
We must learn Python in order to find a high paying job. The following interview questions are the latest interview materials from front-line Internet manufacturers such as Alibaba, Tencent and byte, and Alibaba boss has given authoritative answers. After brushing this set of interview materials, I believe everyone can find a satisfactory job.
Reptile
Introduce the third-party libraries and related documents involved in the crawler
- urllib3
- urllib3 document
- Requests document
- Beautiful Soup English version
- Beautiful Soup Chinese version
- regular expression
- scrapy
- Script document
- PyMySQL
- PyMySQL document
Data analysis
Introduction to the third-party database of data analysis
Attach the total price of python third-party libraries for different purposes on github awesome-python
css selector syntax
expression explain * Select all nodes #Container select the node whose id is container .container Select all class contain container Node of li a Select all li All under a node ul + p choice ul The first one in the back p element div#Container > ul select the first ul sub element of div with id of container ul ~ p Selection and ul All adjacent p element a[title] Select all title Attribute a element a[href="http://baidu. Com "] select all href attributes as http://baidu.com a element of value a[href*="baidu"] Select all href Attribute contains baidu of a element a[href^="http"] Select all href Attribute value in http initial a element a[href$=".jpg"] Select all href Attribute value in.jpg Ending a element input[type=radio]:checked Select the selected radio Element of div:not(#container) select all div attributes whose id is not container li:nth-child(3) Select the third li element tr:nth-child(2n) Even number tr [css Video introduction](http://www.w3school.com.cn/css/css_selector_type.asp)
re regular expression syntax
character matching . Any character except\n) [...] character set \d/\D number/Non numeric \s/\S blank/Non blank \w/\W Word character[a-zA-Z0-9]/Non word character * 0 or infinite times for the previous character + One or infinite times for the previous character ? The previous character 0 times or once {m}/{m,n} Previous character m Times or n second *?/+?/?? Non greedy (match as few characters as possible) ^ Beginning of string $ End of string \A/\Z The specified string must appear at the beginning/ending | Match any of the left and right expressions (ab) As a grouping expression in parentheses \<number> Reference number is num The string to which the grouping of matches (?P<name>) Group an alias (?P=name) Reference alias is name Grouping matching string for [\u4E00-\u9FA5] A Chinese character
xpath syntax
expression explain article Select all article All child nodes of the element /article Select the following element article article/a Select all that belong to article Of child elements of a element //Div selects all div child elements (wherever they appear in the document) article//Div selects the div element of all descendants of the input article element, no matter where it appears under the article //@Class selects all properties named class /article/div[1] Select belong to article First of child elements div element /article/div[last()] Select input article The last of the child elements div element /article/div[last()-1] Select belong to article The penultimate child element div element //div[@lang] select all div elements with lang attribute //div[@lang='eng] select all div elements whose lang attribute is Eng /div/* Select belong to div All child nodes of the element //*Select all elements //div [@ *] select all title elements with attributes //Div / a / / div / p selects the a and p elements of all div elements //Span / / ul select the span and ul elements in the document article/div/p|//Span select all p elements of div elements belonging to article elements and all span elements in the document
This complete set of Python learning materials has been uploaded to CSDN
If you need it, you can scan the official authentication QR code of CSDN below on wechat and get it for free [guarantee 100% free].