One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
create table tv_info( | |
id int auto_increment primary key, | |
url varchar(150), | |
type tinyint(2), | |
title varchar(50), | |
comment varchar(100), | |
status tinyint(2)); |
#!/usr/bin/python | |
# -*-coding: utf-8 -*- | |
import requests | |
from bs4 import BeautifulSoup | |
import pinyin | |
import mysql.connector | |
import sys | |
count_index = 0 |
<?php | |
use GuzzleHttp\Psr7\Request; | |
use GuzzleHttp\Client; | |
use GuzzleHttp\Pool; | |
use Monolog\Logger; | |
use Monolog\Handler\StreamHandler; | |
class PointTest extends PHPUnit_Framework_TestCase | |
{ |
php artisan key:generate | |
php artisan tinker | |
$plain = '123456'; | |
$hashed = app('hash')->make('123456') | |
app('hash')->check($plain, $hashed) | |
php artisan key:generate | |
app('hash')->check($plain, $hashed) |
<?php | |
class Task | |
{ | |
private $data = []; | |
private $fp = null; | |
private $columns = ['id', 'amount', 'date']; |
<?php | |
class RollNewsSpider | |
{ | |
private $url = 'http://roll.news.qq.com/interface/roll.php'; | |
public function run() | |
{ | |
$data = $this->getJsonData(); |
<?php | |
$excluded_folders = [ | |
'node_modules', | |
'storage', | |
'vendor', | |
'bootstrap/cache', | |
]; | |
$finder = PhpCsFixer\Finder::create() | |
->in(__DIR__) | |
->exclude($excluded_folders) |
import axios from 'axios'; | |
async function getBaidu() { | |
return axios.get('http://www.baidu.com'); | |
} | |
async function getBing() { | |
return axios.get('http://www.guazi.com'); | |
} |
import * as puppeteer from 'puppeteer'; | |
import * as fs from 'fs'; | |
/** | |
* 使用typescript实现一个点评页面爬虫 | |
*/ | |
class DianpingDownloader { | |
private urls; | |
/** |