Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf8066e2

Browse files
committed
update readme
1 parentbee57ae commitf8066e2

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*.iml
66

77
*.pyc
8+
env/
89

910
config/prod.cfg
1011
config/client_secrets.json

‎README.md‎

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Before you start you should
5454

5555
* Verify that your currently installed version of Python is**2.x** with`python --version`
5656
* Clone the repository`git clone https://github.com/niqdev/packtpub-crawler.git`
57-
* Install all the dependencies(you might need*sudo* privilege)`pip install -r requirements.txt`
57+
* Install all the dependencies`pip install -r requirements.txt` (see also[virtualenv](https://github.com/niqdev/packtpub-crawler#virtualenv))
5858
* Create a[config](https://github.com/niqdev/packtpub-crawler/blob/master/config/prod_example.cfg) file`cp config/prod_example.cfg config/prod.cfg`
5959
* Change your Packtpub credentials in the config file
6060
```
@@ -401,6 +401,31 @@ Install paramiko with `sudo -H pip install paramiko --ignore-installed`
401401

402402
Install missing dependencies as described[here](https://cryptography.io/en/latest/installation/#building-cryptography-on-windows)
403403

404+
###virtualenv
405+
406+
```
407+
# install pip + setuptools
408+
curl https://bootstrap.pypa.io/get-pip.py | python -
409+
410+
# upgrade pip
411+
pip install -U pip
412+
413+
# install virtualenv globally
414+
sudo pip install virtualenv
415+
416+
# create virtualenv
417+
virtualenv env
418+
419+
# activate virtualenv
420+
source env/bin/activate
421+
422+
# verify virtualenv
423+
which python
424+
python --version
425+
426+
# deactivate virtualenv
427+
deactivate
428+
```
404429

405430
###Development (only for spidering)
406431
Run a simple static server with

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp