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
**Note:** Please do not crawl randomly, you can check the **robots.txt** protocol before crawling. The class name of the website may change, this is just to demonstrate how to use x-crawl.
@@ -787,6 +789,34 @@ myXCrawl
787
789
788
790
The larger the value of the priority attribute, the higher the priority in the current crawling queue.
789
791
792
+
### Print information
793
+
794
+
The crawled print information consists of start (displaying mode and total number), process (displaying number and how long to wait), and result (displaying success and failure information). There will be something like **1-page-2** in front of each piece of information. The first 1 represents the first crawler instance, the middle page represents the API type, and the following 2 represents the second page of the first crawler instance. Do this The purpose is to better distinguish which API the information comes from.
795
+
796
+
When you do not want to display the crawled information in the terminal, you can control the display or hiding through the options.
797
+
798
+
```js
799
+
importxCrawlfrom'x-crawl'
800
+
801
+
// Only hide the process, start and result display
802
+
constmyXCrawl=xCrawl({ log: { process:false } })
803
+
804
+
// Hide all information
805
+
constmyXCrawl=xCrawl({ log:false })
806
+
```
807
+
808
+
The log option accepts an object or boolean type:
809
+
810
+
- Boolean
811
+
812
+
- true: show all
813
+
- false: hide all
814
+
815
+
- object
816
+
- start: control the start information
817
+
- process: control of process information
818
+
- result: control of result information
819
+
790
820
### About Results
791
821
792
822
Each crawl target will generate a detail object, which will contain the following properties:
@@ -2042,10 +2080,16 @@ The crawlPage API has built-in [puppeteer](https://github.com/puppeteer/puppetee
2042
2080
2043
2081
- **GitHub Discussions:** Use [GitHub Discussions](https://github.com/coder-hxl/x-crawl/discussions) for message board-style questions and discussions.
2044
2082
2083
+
Questions and discussions related to illegal activities may not be submitted. x-crawl is for legal use only. It is prohibited to use this tool to conduct any illegal activities, including but not limited to unauthorized data collection, cyber attacks, privacy invasion, etc.
2084
+
2045
2085
### Issues
2046
2086
2047
2087
If you have questions, needs, or good suggestions, you can raise them at [GitHub Issues](https://github.com/coder-hxl/x-crawl/issues).
2048
2088
2049
2089
### Sponsor
2050
2090
2051
2091
x-crawl is an open source project under the MIT license, completely free to use. If you benefit from the projects I develop and maintain at work, please consider supporting my work through the [Afdian](https://afdian.net/a/coderhxl) platform.
2092
+
2093
+
### Special Instructions
2094
+
2095
+
x-crawl is for legal use only. It is prohibited to use this tool to conduct any illegal activities, including but not limited to unauthorized data collection, cyber attacks, privacy invasion, etc.
0 commit comments