Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Make cafeteria scrapper #9

Merged
merged 4 commits into from
Oct 13, 2021
Merged

[FEAT] Make cafeteria scrapper #9

merged 4 commits into from
Oct 13, 2021

Conversation

vcho1958
Copy link
Contributor

๐Ÿ‘€ ์ด์Šˆ

resolve #2

๐Ÿ“Œ ๊ฐœ์š”

ํ•™์ƒ์‹๋‹น ์Šคํฌ๋ž˜ํผ ์ถ”๊ฐ€

๐Ÿ‘ฉโ€๐Ÿ’ป ์ž‘์—… ์‚ฌํ•ญ

WeekMenu, DateMenu, Menu ์ธํ„ฐํŽ˜์ด์Šค ์ž‘์„ฑ

์ถ”ํ›„ ์•„์นจ ์ €๋… ์ถ”๊ฐ€๋  ๊ฒฝ์šฐ ๊ณ ๋ คํ•˜์—ฌ queryselectorAll์„ ํ™œ์šฉํ•ด ์ž‘์—…ํ–ˆ์Šต๋‹ˆ๋‹ค.

โœ… ์ฐธ๊ณ  ์‚ฌํ•ญ

image

๊ณต์œ ํ•  ๋‚ด์šฉ, ์Šคํฌ๋ฆฐ์ƒท ๋“ฑ์„ ๋„ฃ์–ด ์ฃผ์„ธ์š”.

@vcho1958 vcho1958 changed the title feat: make cafeteria scrapper [FEAT] make cafeteria scrapper Oct 12, 2021
@vcho1958 vcho1958 changed the title [FEAT] make cafeteria scrapper [FEAT] Mke cafeteria scrapper Oct 12, 2021
@vcho1958 vcho1958 changed the title [FEAT] Mke cafeteria scrapper [FEAT] Make cafeteria scrapper Oct 12, 2021
@vcho1958 vcho1958 linked an issue Oct 13, 2021 that may be closed by this pull request
@vcho1958
Copy link
Contributor Author

๐Ÿ‘€ ์ด์Šˆ

resolve #2

๐Ÿ“Œ ๊ฐœ์š”

ํ•™์ƒ์‹๋‹น ๋ฐ์ดํ„ฐ ๊ตฌ์กฐ SQL์— ์šฉ์ดํ•˜๊ฒŒ ๋ณ€๊ฒฝ

๐Ÿ‘ฉโ€๐Ÿ’ป ์ž‘์—… ์‚ฌํ•ญ

DateMenu ์ธํ„ฐํŽ˜์ด์Šค ์ž‘์„ฑ

์ถ”ํ›„ ์•„์นจ ์ €๋… ์ถ”๊ฐ€๋  ๊ฒฝ์šฐ ๊ณ ๋ คํ•˜์—ฌ queryselectorAll์„ ํ™œ์šฉํ•ด ์ž‘์—…ํ–ˆ์Šต๋‹ˆ๋‹ค.

โœ… ์ฐธ๊ณ  ์‚ฌํ•ญ

[
  {
    cafeteria: 0,
    date: {},
    kind: '์ผํ’ˆ',
    time: '์ ์‹ฌ์‹์‚ฌ',
    mainMenu: '๋ฏธ์šด์˜(ํœด๋ฌด)',
    menus: [],
    price: [ 0 ]
  },
  {
    cafeteria: 0,
    date: {},
    kind: '์ผํ’ˆ',
    time: '์ ์‹ฌ์‹์‚ฌ',
    mainMenu: '๊น€์น˜์ œ์œก๋ฎ๋ฐฅ',
    menus: [ '๊น๋‘๊ธฐ', '์‚ฌ๊ฐ์–ด๋ฌต์ „', 'ํŒฝ์ด๋ฌด๊ตญ' ],
    price: [ 4200, 4000 ]
  },
  {
    cafeteria: 0,
    date: {},
    kind: '์ผํ’ˆ',
    time: '์ ์‹ฌ์‹์‚ฌ',
    mainMenu: '๋ˆ์ฝ”์ธ ๋ผ๋ฉ˜',
    menus: [ '๋ฐฐ์ถ”๊น€์น˜', '๋ฐฅ ๋ฐ˜๊ณต๊ธฐ', '๋‹จ๋ฌด์ง€๋ฌด์นจ' ],
    price: [ 4200, 4000 ]
  },
  {
    cafeteria: 0,
    date: {},
    kind: '์ผํ’ˆ',
    time: '์ ์‹ฌ์‹์‚ฌ',
    mainMenu: '์˜ค์ง•์–ด๋ณถ์Œ๋น„๋น”๋ฐฅ',
    menus: [ '๋ฐฐ์ถ”๊น€์น˜', '๋ฏธ์—ญ๊ตญ', '๊ณ„๋ž€์•ผ์ฑ„์ฐœ', '์ˆ˜์ œ๋‹ฌ๊ณ ๋‚˜๋ผ๋–ผ' ],
    price: [ 4200, 4000 ]
  },
  {
    cafeteria: 0,
    date: {},
    kind: '์ผํ’ˆ',
    time: '์ ์‹ฌ์‹์‚ฌ',
    mainMenu: '์ง€์ฝ”๋ฐ”์น˜๋ฐฅ',
    menus: [ '๋ฐฐ์ถ”๊น€์น˜', '์š”๊ตฌ๋ฅดํŠธ', 'ํ†ต๋ฐฐ์ถ”๋œ์žฅ๊ตญ' ],
    price: [ 4200, 4000 ]
  },
  {
    cafeteria: 1,
    date: {},
    kind: '์ •์‹',
    time: '์ ์‹ฌ์‹์‚ฌ',
    mainMenu: '๋ฏธ์šด์˜(ํœด๋ฌด)',
    menus: [],
    price: [ 0 ]
  },
  {
    cafeteria: 1,
    date: {},
    kind: '์ •์‹',
    time: '์ ์‹ฌ์‹์‚ฌ',
    mainMenu: '๊น€์น˜๋ˆˆ๊ฝƒ์น˜์ฆˆํ•จ๋ฐ•์Šคํ…Œ์ดํฌ',
    menus: [ '๊น๋‘๊ธฐ', '์š”๊ตฌ๋ฅดํŠธ', '์ซ„๋ฉด', '๋ฐฐ์ถ”๋œ์žฅ๊ตญ', '์–‘์ƒ์ถ”์ƒ๋Ÿฌ๋“œ/์œ ์ž๋“œ๋ ˆ์‹ฑ' ],
    price: [ 5300, 4900 ]
  },
  {
    cafeteria: 1,
    date: {},
    kind: '์ •์‹',
    time: '์ ์‹ฌ์‹์‚ฌ',
    mainMenu: '๋ˆ์œก์ฝฉ๋‚˜๋ฌผ๋ถˆ๊ณ ๊ธฐ',
    menus: [ '๋ฐฐ์ถ”๊น€์น˜', '๋“ค๊นจ๋ฏธ์—ญ๊ตญ', '์ž๋‘์ฟจํ”ผ์Šค', '์•ผ์ฑ„๊ณ„๋ž€์ฐœ', 'ํŒŒ์Šคํƒ€์ƒ๋Ÿฌ๋“œ' ],
    price: [ 5300, 4900 ]
  },
  {
    cafeteria: 1,
    date: {},
    kind: '์ •์‹',
    time: '์ ์‹ฌ์‹์‚ฌ',
    mainMenu: '๋ง›์ตธํ‚นํƒ•์ˆ˜์œก',
    menus: [ '์–ด๋ฌต๋ฌด๊ตญ', '๋ฐฐ์ถ”๊น€์น˜', '์„๋ฅ˜์—์ด๋“œ', '์˜ค์ด๋ถ€์ถ”๋ฌด์นจ', '์งœ์žฅ๋ฉด' ],
    price: [ 5300, 4900 ]
  },
  {
    cafeteria: 1,
    date: {},
    kind: '์ •์‹',
    time: '์ ์‹ฌ์‹์‚ฌ',
    mainMenu: '์ฐœ๋‹ญ',
    menus: [ '๋ฐฐ์ถ”๊น€์น˜', '๋ฌด์ƒ์ฑ„', '๊ฐ๊ทค์ฃผ์Šค', '๊ฐ์ž์ˆ˜์ œ๋น„', '๋‘๋ถ€&๊ฐ€์ง€ํŠ€๊น€/์น ๋ฆฌ์†Œ์Šค' ],
    price: [ 5300, 4900 ]
  },
  {
    cafeteria: 2,
    date: {},
    kind: '์ •์‹',
    time: '์ ์‹ฌ์‹์‚ฌ',
    mainMenu: '๋ฏธ์šด์˜(ํœด๋ฌด)',
    menus: [],
    price: [ 0 ]
  },
  {
    cafeteria: 2,
    date: {},
    kind: '์ •์‹',
    time: '์ ์‹ฌ์‹์‚ฌ',
    mainMenu: '๋ˆ์œก์ฃผ๋ฌผ๋Ÿญ',
    menus: [ '์š”๊ตฌ๋ฅดํŠธ', 'ํฌ๊ธฐ๊น€์น˜', '๋ˆ์œก์žก์ฑ„', '์–ด๋ฌต์ „', '๋ถ์–ด์ฝฉ๋‚˜๋ฌผ๊ตญ', '์–‘๋ฐฐ์ถ”์ƒ๋Ÿฌ๋“œ/์˜ค๋ฆฌ์—”ํƒˆ๋“œ๋ ˆ์‹ฑ' ],
    price: [ 7000, 6000 ]
  },
  {
    cafeteria: 2,
    date: {},
    kind: '์ •์‹',
    time: '์ ์‹ฌ์‹์‚ฌ',
    mainMenu: '๋ฐ๋ฆฌ์•ผ๋ผ๋‹ญ๋ณถ์Œ',
    menus: [ '์š”๊ตฌ๋ฅดํŠธ', 'ํฌ๊ธฐ๊น€์น˜', '๊ผฌ์‹œ๋ž˜๊ธฐ์•ผ์ฑ„๋ฌด์นจ&์ดˆ๊ณ ์ถ”์žฅ', '๋‹จํ˜ธ๋ฐ•์ฃฝ', '๋ฉธ์น˜๋•…์ฝฉ๋ณถ์Œ', '๋ฌด์–ด๋ฌต๊ตญ' ],
    price: [ 7000, 6000 ]
  },
  {
    cafeteria: 2,
    date: {},
    kind: '์ •์‹',
    time: '์ ์‹ฌ์‹์‚ฌ',
    mainMenu: '์ทจ๋‚˜๋ฌผ๋ฐฅ(์–‘๋…๊ฐ„์žฅ)',
    menus: [ '์š”๊ตฌ๋ฅดํŠธ', 'ํฌ๊ธฐ๊น€์น˜', '๊ณ„๋ž€ํŒŒ๊ตญ', '๊น€๊ตฌ์ด', '๊ณ ๋“ฑ์–ด์นด๋ ˆ๊ตฌ์ด', '์†Œ๊ณ ๊ธฐ์ˆ™์ฃผ๋ณถ์Œ' ],
    price: [ 7000, 6000 ]
  },
  {
    cafeteria: 2,
    date: {},
    kind: '์ •์‹',
    time: '์ ์‹ฌ์‹์‚ฌ',
    mainMenu: '์ƒ์„ ๊ฐ€์Šค&ํƒ€๋ฅดํƒ€๋ฅด์†Œ์Šค',
    menus: [ 'ํฌ๊ธฐ๊น€์น˜', '๋ฌด์ƒ์ฑ„', '์œ ๋ถ€์žฅ๊ตญ', '๋น„๋ฒผ๋จน๋Š”๊ณ„๋ž€์žฅ', '์ถ”์–ต์˜ํ† ๋งˆํ† ์ŠคํŒŒ๊ฒŒํ‹ฐ' ],
    price: [ 7000, 6000 ]
  }
]

date๋ถ€๋ถ„์€ ์ฝ˜์†” ์ถœ๋ ฅ์‹œ ์ œ๋Œ€๋กœ ๋‚˜์˜ต๋‹ˆ๋‹ค. ํ„ฐ๋ฏธ๋„์ด๋ผ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ถœ๋ ฅ๋˜์ง€ ์•Š๋„ค์š”.
cafeteria๋Š” 0:ํ•œ๋น› 1:๋ณ„๋น› 2:์€ํ•˜์ˆ˜์ž…๋‹ˆ๋‹ค.

@vcho1958 vcho1958 requested a review from jaryapp October 13, 2021 10:36
Copy link
Contributor

@jaryapp jaryapp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์˜ค ์ž˜ํ•˜์…จ๋„ค์š”! ๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹ค!! ๊ทผ๋ฐ ์•„์ง ๋ชฝ๊ณ DB๋Š” ๊ตฌ์ถ•์ „์ด๋ผ์„œ ๋ชฝ๊ณ DB์™€ ๊ด€๋ จ๋œ ์‚ฌํ•ญ๋“ค์€ ์ถ”ํ›„์— ๊ณ ๋ คํ•˜๋Š”๊ฒŒ ์ข‹์„๋“ฏํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋•Œ ์Šคํ‚ค๋งˆ ๊ตฌ์กฐ๋„ ๊ฐ™์ด ๊ณ ๋ฏผํ•ด๋ณด๋Š”๊ฒŒ ์ข‹์„๊ฒƒ ๊ฐ™์•„์š”.
ํŠนํžˆ ํ•™์ƒ์‹๋‹น๊ณผ ๊ธฐ์ˆ™์‚ฌ์‹๋‹น์€ ๊ฐ™์€ UI๊ตฌ์กฐ๋ฅผ ์ƒ๊ฐํ•˜๊ณ  ์žˆ์–ด์„œ ์„œ๋กœ ๋งž์ถฐ์•ผํ• ๊ฒŒ ์ข€ ์žˆ์„๊ฒƒ ๊ฐ™๊ตฌ์š”
๊ทธ๋ž˜์„œ ๋ฐ์ดํ„ฐ ๋ฐ˜ํ™˜๊ฐ’์€ ํ˜„์žฌ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋Š” DBํ…Œ์ด๋ธ” ๊ตฌ์กฐ์— ๋งž์ถฐ์„œ #2 ์™€ ๊ฐ™์€ ํ˜•ํƒœ๋กœ ๋งž์ถฐ์ฃผ์‹œ๋ฉด ์ข‹์„๊ฒƒ ๊ฐ™์•„์š”. ์Šคํฌ๋ž˜ํผ๋Š” ๊ตฌํ˜„์ด ์™„๋ฃŒ๋˜๋ฉด ๋ฐ”๋กœ ์‚ฌ์šฉํ•˜๋ ค๊ณ  ํ•˜๊ฑฐ๋“ ์šค

Comment on lines 11 to 20
loadScript(scriptPath: string) {
find.file(/\.js$/, scriptPath, (paths: string[]) => {
for (const path of paths) {
const script = require(path);
this.queue.push(new Scenario(script));
}
this.loadedScript = true;
});
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ด๋ถ€๋ถ„์€ Scrapper์— ์žˆ๋Š” ์ฝ”๋“œ์ธ๋ฐ ํ˜น์‹œ ์˜ฎ๊ธฐ์‹  ์ด์œ ๊ฐ€ ์žˆ์„๊นŒ์š”?

Copy link
Contributor Author

@vcho1958 vcho1958 Oct 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์•„ 3๋ฒˆ ๋”ฐ๋กœ ๊ธ์–ด์•ผ ํ•˜๋Š” ์ค„ ์•Œ๊ณ  ์ฝ”๋“œ ์žฌ์‚ฌ์šฉ์„ ์œ„ํ•ด์„œ ํด๋กœ์ €๋กœ ๋งŒ๋“ค์–ด๋ณผ ์ƒ๊ฐ์ด์—ˆ์Šต๋‹ˆ๋‹ค.
๊ทธ๋Ÿฐ๋ฐ ๊ตฌ์กฐ๊ฐ€ ๊ทธ๋ƒฅ ํƒญ ์•ˆ๋ˆ„๋ฅด๋ฉด ์ˆจ๊ฒจ์ ธ์žˆ๋‹ค๊ฐ€ ์ „ํ™˜๋˜๋Š”๊ฑฐ๋”๋ผ๊ตฌ์š” ์ •๋ณด๊ฐ€ html์— ๋‹ค ๋‚จ์•„์žˆ๊ธธ๋ž˜ ๊ทธ๋ƒฅ ์ˆ˜์ •์•ˆํ–ˆ๋Š”๋ฐ
๋‹ค์‹œ ์ง€์šฐ๋Š” ๊ฑธ ๊นœ๋นกํ–ˆ๋„ค์š”!
๊ทธ ๊ตฌ์กฐ๋Š” ๊ฐ€๊ฒฉ์ด๋ž‘ ์ข…๋ฅ˜(๋ฐ˜์‘ํ˜•์œผ๋กœ ๊ฐ€๋กœ ์ค„์ด๋ฉด ๋ฐฑ๋ฐ˜ ์ •์‹ ํŠน์‹ ๋“ฑ์ด ๋‹ค ๋‚˜๋‰˜๋Š” ๊ฑธ๋กœ ๋ณด์•„ ๋‚˜์ค‘์— ์ถ”๊ฐ€๋  ๊ฒƒ ๊ฐ™์€ ๋Š๋‚Œ์ด..) ์žˆ์–ด์„œ ๋”ฐ๋กœ ๋งŒ๋“ค๊ธด ํ•ด์•ผํ•  ๊ฒƒ ๊ฐ™์€๋ฐ ์–ด๋–ป๊ฒŒ ํ•ด์•ผํ• ๊นŒ์š”?
๋ฐฐ์—ด๋กœ ๋˜์–ด์žˆ๋Š” ํ”„๋กœํผํ‹ฐ๋“ค์€ ๋ง์”€ํ•ด์ฃผ์‹  ๊ตฌ์กฐ๋Œ€๋กœ |๋กœ ๊ตฌ๋ถ„ํ•ด์„œ ํ•œ ๋ฌธ์ž์—ด๋กœ ํ•ฉ์น˜๋„๋กํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.
์ผ๋‹จ ๋ง์”€ํ•ด์ฃผ์‹ ๋Œ€๋กœ ์ˆ˜์ •ํ•ด์„œ ๋‹ค์‹œ ์ปค๋ฐ‹ ์˜ฌ๋ฆฌ๊ฒ ์Šต๋‹ˆ๋‹ค.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์•„๋‹ˆ๋ฉด foreign key๋กœ ํ™œ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ primary key๊ฐ’์„ ์—ฐ๊ฒฐ์‹œํ‚ฌ ๊ตฌ์กฐ๋ฅผ ํ•˜๋‚˜ ๋” ๋งŒ๋“ค์–ด์„œ ํ•˜๋Š” ๊ฒŒ ๋‚˜์„๊นŒ์š”?

Copy link
Contributor

@jaryapp jaryapp Oct 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ํ .. ๊ทธ๋Ÿฌ๋„ค์š” ์ง€๊ธˆ์€ ํ•œ๋น›์‹๋‹น์—์„œ ์ผํ’ˆ๋ฐ–์— ์•ˆ๋ณด์ด๋Š”๋ฐ ๋‚˜์ค‘์— ๋ฐฑ๋ฐ˜ ์ •์‹์ด๋ž‘ ํŠน์‹์ด ์ถ”๊ฐ€๋ ์ˆ˜๋„ ์žˆ์„๊ฒƒ ๊ฐ™๊ตฐ์š”..
์ผ๋‹จ ์ง€๊ธˆ์€ ํ•œ๋น›์‹๋‹น(์ผํ’ˆ)ํ•˜๊ณ  (๋ณ„๋น›,์€ํ•˜์ˆ˜)์ •์‹๋งŒ ์Šคํฌ๋ž˜ํ•‘ํ•˜๊ณ  ๋ฐฑ๋ฐ˜์ด ์ถ”๊ฐ€๋˜๋ฉด ๊ธฐ์ˆ™์‚ฌ ์‹๋‹จ๊ณผ UI์™€ ๋ฐ์ดํ„ฐ ๊ตฌ์กฐ๋ฅผ ๋‹ค๋ฅด๊ฒŒ ํ•ด์•ผํ•˜๋Š” ๋ฐฉ๋ฒ•๊นŒ์ง€๋„ ๊ณ ๋ คํ•ด๋ด์•ผ๊ฒ ์Šต๋‹ˆ๋‹ค

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[
  {
    restaurant_name: 'ํ•œ๋น› ์‹๋‹น',
    food_name: '๋ฏธ์šด์˜(ํœด๋ฌด)|',
    date: '2021-11-11',
    time: 1
  },
  {
    restaurant_name: 'ํ•œ๋น› ์‹๋‹น',
    food_name: '๊น€์น˜์ œ์œก๋ฎ๋ฐฅ|๊น๋‘๊ธฐ|์‚ฌ๊ฐ์–ด๋ฌต์ „|ํŒฝ์ด๋ฌด๊ตญ',
    date: '2021-11-12',
    time: 1
  },
  {
    restaurant_name: 'ํ•œ๋น› ์‹๋‹น',
    food_name: '๋ˆ์ฝ”์ธ ๋ผ๋ฉ˜|๋ฐฐ์ถ”๊น€์น˜|๋ฐฅ ๋ฐ˜๊ณต๊ธฐ|๋‹จ๋ฌด์ง€๋ฌด์นจ',
    date: '2021-11-13',
    time: 1
  },
  {
    restaurant_name: 'ํ•œ๋น› ์‹๋‹น',
    food_name: '์˜ค์ง•์–ด๋ณถ์Œ๋น„๋น”๋ฐฅ|๋ฐฐ์ถ”๊น€์น˜|๋ฏธ์—ญ๊ตญ|๊ณ„๋ž€์•ผ์ฑ„์ฐœ|์ˆ˜์ œ๋‹ฌ๊ณ ๋‚˜๋ผ๋–ผ',
    date: '2021-11-14',
    time: 1
  },
  {
    restaurant_name: 'ํ•œ๋น› ์‹๋‹น',
    food_name: '์ง€์ฝ”๋ฐ”์น˜๋ฐฅ|๋ฐฐ์ถ”๊น€์น˜|์š”๊ตฌ๋ฅดํŠธ|ํ†ต๋ฐฐ์ถ”๋œ์žฅ๊ตญ',
    date: '2021-11-15',
    time: 1
  },
  {
    restaurant_name: '๋ณ„๋น› ์‹๋‹น',
    food_name: '๋ฏธ์šด์˜(ํœด๋ฌด)|',
    date: '2021-11-11',
    time: 1
  },
  {
    restaurant_name: '๋ณ„๋น› ์‹๋‹น',
    food_name: '๊น€์น˜๋ˆˆ๊ฝƒ์น˜์ฆˆํ•จ๋ฐ•์Šคํ…Œ์ดํฌ|๊น๋‘๊ธฐ|์š”๊ตฌ๋ฅดํŠธ|์ซ„๋ฉด|๋ฐฐ์ถ”๋œ์žฅ๊ตญ|์–‘์ƒ์ถ”์ƒ๋Ÿฌ๋“œ/์œ ์ž๋“œ๋ ˆ์‹ฑ',
    date: '2021-11-12',
    time: 1
  },
  {
    restaurant_name: '๋ณ„๋น› ์‹๋‹น',
    food_name: '๋ˆ์œก์ฝฉ๋‚˜๋ฌผ๋ถˆ๊ณ ๊ธฐ|๋ฐฐ์ถ”๊น€์น˜|๋“ค๊นจ๋ฏธ์—ญ๊ตญ|์ž๋‘์ฟจํ”ผ์Šค|์•ผ์ฑ„๊ณ„๋ž€์ฐœ|ํŒŒ์Šคํƒ€์ƒ๋Ÿฌ๋“œ',
    date: '2021-11-13',
    time: 1
  },
  {
    restaurant_name: '๋ณ„๋น› ์‹๋‹น',
    food_name: '๋ง›์ตธํ‚นํƒ•์ˆ˜์œก|์–ด๋ฌต๋ฌด๊ตญ|๋ฐฐ์ถ”๊น€์น˜|์„๋ฅ˜์—์ด๋“œ|์˜ค์ด๋ถ€์ถ”๋ฌด์นจ|์งœ์žฅ๋ฉด',
    date: '2021-11-14',
    time: 1
  },
  {
    restaurant_name: '๋ณ„๋น› ์‹๋‹น',
    food_name: '์ฐœ๋‹ญ|๋ฐฐ์ถ”๊น€์น˜|๋ฌด์ƒ์ฑ„|๊ฐ๊ทค์ฃผ์Šค|๊ฐ์ž์ˆ˜์ œ๋น„|๋‘๋ถ€&๊ฐ€์ง€ํŠ€๊น€/์น ๋ฆฌ์†Œ์Šค',
    date: '2021-11-15',
    time: 1
  },
  {
    restaurant_name: '์€ํ•˜์ˆ˜ ์‹๋‹น',
    food_name: '๋ฏธ์šด์˜(ํœด๋ฌด)|',
    date: '2021-11-11',
    time: 1
  },
  {
    restaurant_name: '์€ํ•˜์ˆ˜ ์‹๋‹น',
    food_name: '๋ˆ์œก์ฃผ๋ฌผ๋Ÿญ|์š”๊ตฌ๋ฅดํŠธ|ํฌ๊ธฐ๊น€์น˜|๋ˆ์œก์žก์ฑ„|์–ด๋ฌต์ „|๋ถ์–ด์ฝฉ๋‚˜๋ฌผ๊ตญ|์–‘๋ฐฐ์ถ”์ƒ๋Ÿฌ๋“œ/์˜ค๋ฆฌ์—”ํƒˆ๋“œ๋ ˆ์‹ฑ',
    date: '2021-11-12',
    time: 1
  },
  {
    restaurant_name: '์€ํ•˜์ˆ˜ ์‹๋‹น',
    food_name: '๋ฐ๋ฆฌ์•ผ๋ผ๋‹ญ๋ณถ์Œ|์š”๊ตฌ๋ฅดํŠธ|ํฌ๊ธฐ๊น€์น˜|๊ผฌ์‹œ๋ž˜๊ธฐ์•ผ์ฑ„๋ฌด์นจ&์ดˆ๊ณ ์ถ”์žฅ|๋‹จํ˜ธ๋ฐ•์ฃฝ|๋ฉธ์น˜๋•…์ฝฉ๋ณถ์Œ|๋ฌด์–ด๋ฌต๊ตญ',
    date: '2021-11-13',
    time: 1
  },
  {
    restaurant_name: '์€ํ•˜์ˆ˜ ์‹๋‹น',
    food_name: '์ทจ๋‚˜๋ฌผ๋ฐฅ(์–‘๋…๊ฐ„์žฅ)|์š”๊ตฌ๋ฅดํŠธ|ํฌ๊ธฐ๊น€์น˜|๊ณ„๋ž€ํŒŒ๊ตญ|๊น€๊ตฌ์ด|๊ณ ๋“ฑ์–ด์นด๋ ˆ๊ตฌ์ด|์†Œ๊ณ ๊ธฐ์ˆ™์ฃผ๋ณถ์Œ',
    date: '2021-11-14',
    time: 1
  },
  {
    restaurant_name: '์€ํ•˜์ˆ˜ ์‹๋‹น',
    food_name: '์ƒ์„ ๊ฐ€์Šค&ํƒ€๋ฅดํƒ€๋ฅด์†Œ์Šค|ํฌ๊ธฐ๊น€์น˜|๋ฌด์ƒ์ฑ„|์œ ๋ถ€์žฅ๊ตญ|๋น„๋ฒผ๋จน๋Š”๊ณ„๋ž€์žฅ|์ถ”์–ต์˜ํ† ๋งˆํ† ์ŠคํŒŒ๊ฒŒํ‹ฐ',
    date: '2021-11-15',
    time: 1
  }
]

์™„๋ฃŒ ํ›„ ์ปค๋ฐ‹ํ–ˆ์Šต๋‹ˆ๋‹ค.

Copy link
Contributor

@jaryapp jaryapp Oct 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์˜ค ๋„ต ๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹ค. ๊ทผ๋ฐ ํ˜น์‹œ ๋ฉ”๋‰ด ์ด๋ฆ„ ๊ตฌ๋ถ„ํ• ๋•Œ | ๋Œ€์‹  ๋„์–ด์“ฐ๊ธฐ๋กœ ๋ฐ”๊ฟ”์ฃผ์‹ค ์ˆ˜ ์žˆ์„๊นŒ์š”?
๊ทธ๋ฆฌ๊ณ  ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€๋ช…์€ {prefix}: {action} {subject} (#{issue_number})ํ˜•ํƒœ๋กœ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.
์ฐธ๊ณ : CMI-OSS/common#1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค!

@@ -21,9 +32,9 @@ class CafeteriaScrapper extends Scrapper<CafeteriaScript> {
await this.cralwer.goto(cafeteriaScript.url);
await this.cralwer.waitForSelector(cafeteriaScript.waitSelector);
await this.evaluateScript(cafeteriaScript);
await this.cralwer.evaluate(`script.selectCafetera()`);
const menus = await this.cralwer.evaluate(`script.getMenus()`);
Copy link
Contributor

@jaryapp jaryapp Oct 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

menu์˜ ํƒ€์ž…์„ Menu[]๋ผ๊ณ  ์ƒ๊ฐํ•ด์ฃผ์‹œ๋ฉด ๋ ๋“ฏํ•ฉ๋‹ˆ๋‹ค

@jaryapp jaryapp merged commit 6de715a into CMI-OSS:feature/i2 Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] ํ•™์ƒ์‹๋‹น ์Šคํฌ๋ž˜ํผ
2 participants