This program is used to grab takeout platform (American Regiment, Hungry, Baidu) merchant order development, not a common library, but for this particular scenario development.
Applicable scenario: Catering Enterprises have a number of take-away stores, orders are very large, there is a demand for data analysis of orders.
Main function: Start every day, grab the order of the three selling platform, turn into Excel file, send the email to the need person how to use
Modify the Production.json in the Config directory
{"
log": {
"level": "DEBUG"
},
"Mail": {
"from": "company@xxx.com",//Mail sender
"mailTo": "Di.mu @xxx. com ",//Mail Recipient
" host ":" Smtp.xxx.com ",
" Port ":", "
secure": false,
"user": "company@xxx.com", //program use mail
"pass": "The password for the message used by the program"
},
"Imgcode": {
"key": "Xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" //HTTPS://WWW.JUHE.CN/DOCS/API/ID/60 identifies the key of the authentication Code API
,
"account": [
{
"name]:" American Group XXX Shop ",
" username ":" Account Name ",
" password ":" Account password ",
" type ":" Meituan "
},
{
" name ":" Are you hungry? XXX shop ",
" username ":" Account Name ",
" password ":" Account password ",
" type ":" Eleme "
},
{
" name ":" Baidu xxx Shop ",
" username ":" Account Name ",
" password ":" Account password ",
" type ":" Baidu "
}
]
}
The following configuration is the program used to identify the use of authentication Code API services, the United States group, Baidu's business backstage all need to verify code login API service is the aggregation of data authentication Code identification services, you need to apply for aggregation data account, get key to fill in the following configuration items.
"Imgcode": {
"key": "Xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" //HTTPS://WWW.JUHE.CN/DOCS/API/ID/60 Identifies the key of the authentication code API.
The mail feature needs to configure a detailed SMTP service address, Sender account name, password, port, or use SSL
"Mail": {
"from": "company@xxx.com",//Mail sender
"mailTo": "di.mu@xxx.com",//Mail Recipient
"host": "Smtp.xxx.com",
"Port": "
Secure": false,
"user": "company@xxx.com", //The program uses the Mail
"pass": "The password for the message used by the program"
},
GitHub Address: Https://github.com/mudiyouyou/waimai-crawler