You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: publish/README.md
+21-3
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,16 @@ It consists of two parts:
26
26
-**🧾 Crawl information** - Controllable crawl information, which will output colored string information in the terminal.
27
27
-**🦾 TypeScript** - Own types and implement complete types through generics.
28
28
29
+
## AI assisted crawler
30
+
31
+
With the rapid development of network technology, website updates have become more frequent, and changes in class names or structures often bring considerable challenges to crawlers that rely on these elements. Against this background, crawlers combined with AI technology have become a powerful weapon to meet this challenge.
32
+
33
+
First of all, changes in class names or structures after website updates may cause traditional crawler strategies to fail. This is because crawlers often rely on fixed class names or structures to locate and extract the required information. Once these elements change, the crawler may not be able to accurately find the required data, thus affecting the effectiveness and accuracy of data crawling.
34
+
35
+
However, crawlers combined with AI technology are better able to cope with this change. AI can also understand and parse the semantic information of web pages through natural language processing and other technologies to more accurately extract the required data.
36
+
37
+
To sum up, crawlers combined with AI technology can better cope with the problem of class name or structure changes after website updates.
38
+
29
39
## Example
30
40
31
41
The combination of crawler and AI allows the crawler and AI to obtain pictures of high-rated vacation rentals according to our instructions:
**You can even send the whole HTML to the AI to help us operate, because the website content is more complex you also need to describe the location to get more accurately, and will consume a lot of Tokens.**
For example: View the HTML that AI needs to process or view the srcResult (img url) returned by AI after parsing the HTML according to our instructions
96
+
97
+
All at the bottom of this example: https://coder-hxl.github.io/x-crawl/guide/#example
80
98
81
99
**warning**: x-crawl is for legal use only. Any illegal activity using this tool is prohibited. Please be sure to comply with the robots.txt file regulations of the target website. This example is only used to demonstrate the use of x-crawl and is not targeted at a specific website.
0 commit comments