项目作者: BaseMax

项目描述 :
PHP Crawler to get Persian news related to currency coin and gold.
高级语言: PHP
项目地址: git://github.com/BaseMax/crawler-news-currency-gold-coins.git
创建时间: 2021-01-16T21:32:34Z
项目社区:https://github.com/BaseMax/crawler-news-currency-gold-coins

开源协议:GNU General Public License v3.0

下载


crawler-news-currency-gold-coins

PHP Crawler to get Persian news related to currency coin and gold.

You can see the output of this program in this database file.

Database

  1. --
  2. -- Table structure for table `news`
  3. --
  4. CREATE TABLE `news` (
  5. `id` bigint(50) NOT NULL,
  6. `source_id` bigint(20) NOT NULL,
  7. `title` text NOT NULL,
  8. `subtitle` text DEFAULT NULL,
  9. `slug` text NOT NULL,
  10. `text` longtext DEFAULT NULL,
  11. `subtext` text DEFAULT NULL,
  12. `source` int(11) NOT NULL DEFAULT 1,
  13. `link` text NOT NULL,
  14. `image` text DEFAULT NULL,
  15. `video` text DEFAULT NULL,
  16. `date` varchar(40) NOT NULL,
  17. `time` varchar(20) NOT NULL,
  18. `view` int(11) NOT NULL DEFAULT 0,
  19. `datetime` timestamp NOT NULL DEFAULT current_timestamp()
  20. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Crontab

$ crontab -l

  1. 0 */3 * * * php /path/to/dir/parse.php