Initial project setup: Bun + cheerio scraper with dev mode
- config/ with default + local (gitignored) merge pattern - fetcher with manual redirect tracking, cookie jar, dev mode JSON logging - cheerio parser stub ready for selectors - telegram sender - weekday-aware entry point Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
export interface DayUrls {
|
||||
monday: string
|
||||
tuesday: string
|
||||
wednesday: string
|
||||
thursday: string
|
||||
friday: string
|
||||
}
|
||||
|
||||
export interface TelegramConfig {
|
||||
botToken: string
|
||||
chatId: string
|
||||
}
|
||||
|
||||
export interface Config {
|
||||
days: DayUrls
|
||||
devMode: boolean
|
||||
telegram: TelegramConfig
|
||||
}
|
||||
|
||||
const config: Config = {
|
||||
days: {
|
||||
monday: "",
|
||||
tuesday: "",
|
||||
wednesday: "",
|
||||
thursday: "",
|
||||
friday: "",
|
||||
},
|
||||
devMode: false,
|
||||
telegram: {
|
||||
botToken: "",
|
||||
chatId: "",
|
||||
},
|
||||
}
|
||||
|
||||
export default config
|
||||
Reference in New Issue
Block a user