Giter Site home page Giter Site logo

smzdm-crawler's Introduction

什么值得买信息抓取

需要环境:

# python2.7
pip install beautifulsoup4
pip install html5lib
pip install requests    # require https://www.microsoft.com/en-us/download/confirmation.aspx?id=44266
pip install pymongo     # http://www.mongodb.org/downloads

Linux 基础环境配置

# 请谨慎操作, 注意python版本
#更新内核
yum update -y
#安装开发工具
yum groupinstall Base "Development Tools" -y
yum -y install python-setuptools

Linux32 下安装及启动mongo

# 下载、安装
wget https://fastdl.mongodb.org/linux/mongodb-linux-i686-3.2.10.tgz
tar -zxvf mongodb-linux-i686-3.2.10.tgz
mv mongodb-linux-i686-3.2.10 /usr/local/mongodb

# 运行
/usr/local/mongodb/bin/mongod -f /data/mongodb/mongodb.conf --journal --storageEngine=mmapv1


配置项

dbpath=/data/mongodb/data
logpath=/data/mongodb/log/log
#storageEngine=wiredTiger
fork=true
auth=false
#wiredTigerCacheSizeGB=12

win32 下启动mongo

x64 https://fastdl.mongodb.org/win32/mongodb-win32-i386-3.2.9-signed.msi?_ga=1.91945178.1993393702.1474981843

方法一

mongod -dbpath "d:\mongodb\db" --logpath "d:\mongodb\log\mongodb.log" --journal --storageEngine=mmapv1

方法二 服务

  1. 安装服务 mongod -dbpath "d:\mongodb\db" --logpath "d:\mongodb\log\mongodb.log" --journal --storageEngine=mmapv1 --install --serviceName "MongoDB"
  2. 启动服务 net start MongoDB

smzdm-crawler's People

Contributors

love123i avatar

Stargazers

 avatar brian avatar  avatar

Watchers

 avatar

Forkers

sub1s

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.