sws_lua/
ns.rs

1pub mod globals {
2    //! The global namespace
3
4    pub const SCRAP_PAGE: &str = "scrapPage"; // Function
5    pub const ACCEPT_URL: &str = "acceptUrl"; // Function
6
7    pub const SWS: &str = "sws"; // Table
8}
9
10pub mod sws {
11    //! The `sws` namespace
12
13    pub const SEED_SITEMAPS: &str = "seedSitemaps"; // Table
14    pub const SEED_PAGES: &str = "seedPages"; // Table
15    pub const SEED_ROBOTS_TXT: &str = "seedRobotsTxt"; // String
16
17    pub const CSV_WRITER_CONFIG: &str = "csvWriterConfig"; // Table
18    pub const CRAWLER_CONFIG: &str = "crawlerConfig"; // Table
19
20    pub mod html {
21        //! The `Html` class
22        pub const SELECT: &str = "select"; // Function
23        pub const ROOT: &str = "root"; // Function
24    }
25
26    pub mod select {
27        //! The `Select` class
28        pub const ITER: &str = "iter"; // Function
29        pub const ENUMERATE: &str = "enumerate"; // Function
30    }
31
32    pub mod elem_ref {
33        //! The `ElemRef` class
34        pub const SELECT: &str = "select"; // Function
35        pub const INNER_HTML: &str = "innerHtml"; // Function
36        pub const INNER_TEXT: &str = "innerText"; // Function
37        pub const NAME: &str = "name"; // Function
38        pub const ID: &str = "id"; // Function
39        pub const HAS_CLASS: &str = "hasClass"; // Function
40        pub const CLASSES: &str = "classes"; // Function
41        pub const ATTR: &str = "attr"; // Function
42        pub const ATTRS: &str = "attrs"; // Function
43    }
44
45    pub const DATE: &str = "Date"; // Function
46    pub mod date {
47        //! The `Date` class
48        pub const FORMAT: &str = "format"; // Function
49    }
50
51    pub mod scraping_context {
52        //! The `ScrapingContext` class
53        pub const PAGE_LOCATION: &str = "pageLocation"; // Function
54        pub const SEND_RECORD: &str = "sendRecord"; // Function
55        pub const SEND_URL: &str = "sendUrl"; // Function
56        pub const WORKER_ID: &str = "workerId"; // Function
57        pub const ROBOT: &str = "robot"; // Function
58    }
59
60    pub mod page_location {
61        //! The `PageLocation` class
62        pub const KIND: &str = "kind"; // Function
63        pub const GET: &str = "get"; // Function
64    }
65
66    pub const LOCATION: &str = "Location"; // Table
67    pub mod location {
68        //! The `Location` enum
69        pub const URL: &str = "URL"; // String
70        pub const PATH: &str = "PATH"; // String
71    }
72
73    pub const RECORD: &str = "Record"; // Function
74    pub mod record {
75        //! The `Record` class
76        pub const PUSH_FIELD: &str = "pushField"; // Function
77    }
78
79    pub mod crawling_context {
80        //! The `CrawlingContext` class
81        pub const ROBOT: &str = "robot"; // Function
82        pub const SITEMAP: &str = "sitemap"; // Function
83    }
84
85    pub mod robot {
86        //! The `Robot` class
87        pub const ALLOWED: &str = "allowed"; // Function
88    }
89
90    pub const SITEMAP: &str = "Sitemap"; // Table
91    pub mod sitemap {
92        //! The `Sitemap` enum
93        pub const INDEX: &str = "INDEX"; // String
94        pub const URL_SET: &str = "URL_SET"; // String
95    }
96}