-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.ts
36 lines (30 loc) · 900 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { entryScrapping } from './scrappers/Linkedin/entryScrapper'
import { internScrapping } from './scrappers/Linkedin/internScrapper'
import { LinkedinScrapper } from './scrappers/Linkedin/linkedinScrapping'
import { IQuery } from './types/modules'
import { scrape } from './utils/pupt/scraper'
import { uuidJob } from './utils/pupt/uuid-wuzzuf'
const scrapper = process.argv.slice(2).toString()
switch (scrapper.toLowerCase()){
case 'intern':
(async ()=>{
await internScrapping()
})()
break;
case 'entry':
(async ()=>{
await entryScrapping()
})()
break;
default:
(async ()=>{
await LinkedinScrapper()
})()
}
// (async ()=>{
// await LinkedinScrapper()
// })()
// console.log(searchQuery({search:'backend'}))
// scrape('front-end');
// scrape('backend')
// scrape()