Skip to content

robincloud/microbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MicroBot

Micro Bot Engine for Robin's Open API.


Enviroment

Note:

  • Recommend to Download RASPBIAN STRETCH LITE version
  • Python3 is now built-in in Raspbian

Installation

Copy Raspbian to MicroSD Card

Use Etcher.
You can use this tool whatever your operation system is. (eg. Windows, MacOS, Linux)

Tuto

Setting Raspbian

You have to change default Hostname, Password, Timezone.

$ sudo raspi-config

Update Raspbian

This command will make your RPi up to date

$ sudo apt-get update
$ sudo apt-get upgrade -y
$ sudo apt-get dist-upgrade -y
$ sudo rpi-update

Install Dependencies

$ sudo apt-get install -y python3-pip git-core
$ sudo pip3 install requests Beautifulsoup4 GitPython psutil

Get Source

$ git clone https://github.com/robincloud/microbot.git ~/Microbot

Add to crontab to run automatically when booted

$ sudo chmod 755 /home/pi/Microbot/loop.sh
$ sudo crontab -e
> @reboot sh /home/pi/Microbot/loop.sh

Specification

HTTP GET

JSON Type

Field Name Type EXP
id string 상품 아이디
mid string 상품 mid

HTTP POST

JSON Type

Field Name Type EXP
id string 상품 아이디
mid string 상품 mid
data list 크롤링한 데이터

data field

Field Name Type EXP
id string 상품 아이디
mid string 상품 mid
pkey int 옵션에 대한 고유값
cat string 카테고리
count int 판매몰 수
item_name string 상품명
option_name string 옵션명
nods list 판매몰에대한 정보

nods field

Field Name Type EXP
id string 판매몰 아이디
name string 판매몰 상품명
mall string 판매몰 업체명
price int 판매몰에서 올린 가격
delivery int 판매몰의 배송비
npay int 네이버 패이 지원여부
0: False, 1: True

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •