Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/workflows/update-ky-youtube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ jobs:
working-directory: packages/crawling
run: pnpm install

- name: Install puppeteer dependencies
working-directory: packages/crawling
run: |
sudo apt-get update
sudo apt-get install -y chromium

- name: Create .env file
working-directory: packages/crawling
run: |
Expand Down
25 changes: 15 additions & 10 deletions packages/crawling/src/crawling/crawlYoutubeUbuntu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,23 @@ import { isValidKYExistNumber } from './isValidKYExistNumber';
// crawlYoutubeValid에서 진행하는 실제 사이트 검증도 포함

// action 우분투 환경에서의 호환을 위해 추가
// const browser = await puppeteer.launch({
// headless: true,
// executablePath: '/usr/bin/chromium-browser', // 또는 "/usr/bin/chromium"
// args: [
// '--no-sandbox',
// '--disable-setuid-sandbox',
// '--disable-dev-shm-usage', // 리눅스 메모리 제한 대응
// '--disable-gpu',
// '--disable-infobars',
// '--single-process',
// '--window-size=1920,1080',
// ],
// });

const browser = await puppeteer.launch({
headless: true,
executablePath: '/usr/bin/chromium-browser', // 또는 "/usr/bin/chromium"
args: [
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-dev-shm-usage', // 리눅스 메모리 제한 대응
'--disable-gpu',
'--disable-infobars',
'--single-process',
'--window-size=1920,1080',
],
args: ['--no-sandbox', '--disable-setuid-sandbox'],
});

const page = await browser.newPage();
Expand Down