Takeout Order crawler automatically grab three big takeaway platform on the Business Order (American Regiment, Hungry, Baidu Takeout)

Source: Internet
Author: User

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



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.