30 lines
1.1 KiB
PHP
30 lines
1.1 KiB
PHP
<?php
|
|
declare(strict_types = 1);
|
|
|
|
class Config {
|
|
const feed = [
|
|
'title' => '[INHUMAN] a sci-fi webcomic',
|
|
'description' => '...',
|
|
'feedUrl' => 'http://www.inhuman-comic.com/feed.xml'
|
|
];
|
|
// where to write the feed file
|
|
const feedPath = '/tmp/feed.xml';
|
|
|
|
// where to start spidering
|
|
const baseURL = "http://www.inhuman-comic.com";
|
|
// how the script identifies itself to the server while spidering
|
|
// (this will also be used as the "Generator" value in the feed XML)
|
|
const userAgent = 'Lexie\'s RSS Monster (for Cial) (lexie@alexis-marie-wright.me)';
|
|
// a CSS selector identifying the "next page" link to follow while spidering
|
|
const nextLinkSelector = 'div.body a.prev';
|
|
// which log levels to emit (true) or suppress (false)
|
|
// nothing below 'info' should be important in normal operation
|
|
const logLevels = [
|
|
'info' => true,
|
|
'debug' => true,
|
|
'silly' => false
|
|
];
|
|
// if set, fetch only this many pages while spidering (false to fetch all)
|
|
const TEST_stopAfter = 2;
|
|
}
|