"Web crawler" prep knowledge

Source: Internet
Author: User

"Web crawler" prep knowledge

I. Expressions commonly used in regular expressions

There are a lot of things in regular expression, it is difficult to learn fine, but do not need to learn fine crawler, as long as it will be part of the line, the following will introduce my commonly used expressions, basic enough.

1. Go head to Tail---(<= ...) ... (?=...)

The expression is the most I use, such as test instructions, go to the end of the head to match the middle, matching a single data is very useful, is good to write, easy to understand, and the match out of the thing is want

2. Group---(?< group name; )...

This expression is primarily used when matching multiple data with a regular

It's going to be 2 basic.

Two. Grab the bag tool, do the crawler this is essential, no tools are basically not done

It is recommended to bring your own F12 to IE11.

There are no bags that can't be caught, and the search function is also very powerful.

"Web crawler" prep knowledge

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.