折腾:
【记录】分析xxxapp中数据来源和如何爬取
期间,发现:

Welcome to 少儿xxx.
childapi xxx
1 2 3 4 5 6 7 | LIST_URL = ' https: / / apis.xxx.com / course / get_course_list?sign = 37424885dff971f806afdfe93c21dba1 ×tamp = % s&uid = - 1 &level = all &sort = new&start = % s&category_id = 2 &ishow = 0 &rows = % s&nature_id = all ' DETAIL_URL = " https: / / apis.xxx.com / course / detail_new?sign = 72ee4ff75aa4d70e01b77bee95294d40 ×tamp = % s&uid = - 1 &course_id = % s " |
“
source xxx
{
type = mysql
sql_host = localhost
sql_user = root
sql_pass =
sql_db = tuchao2
sql_port = 3306
…
index xxx
{
source = xxx
path = /usr/local/coreseek/var/data/xxx
“
xxx Website – xxx.com | IPAddress.com
Lumen
Lumen xxx
->
“Laravel Lumen is a stunningly fast PHP micro-framework for building web applications with expressive, elegant syntax. ”
“The stunningly fast micro-framework by Laravel.”
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <?php /** * Reimagine what you expect... */ $app->get( '/' , function () { return [ 'version' => '5.3' ] }); /** * From your micro-framework... */ $app->post( 'framework/{id}' , function ($framework) { $this->dispatch(new Energy($framework)); }); |
lumen rest 接口
【总结】
Lumen:
- PHP语言,PHP版本 >= 7.0:
- (php的流行框架)Laravel团队打造的,性能好的微框架,常用于开发REST API接口。
- 其他类似框架:Silex,Slim 3
- 可以理解为Python中的Flask?
转载请注明:在路上 » 【整理】lumen简介