diff --git a/.gitignore b/.gitignore index 803ca88..fdba3f3 100644 --- a/.gitignore +++ b/.gitignore @@ -102,3 +102,4 @@ ENV/ result.csv *.swp +venvParser/* diff --git a/install.sh b/install.sh index b35102a..0a97e7d 100755 --- a/install.sh +++ b/install.sh @@ -1,4 +1,7 @@ #!/bin/bash - +virtFold=venvParser sudo apt-get install python3-dev python3-pip -sudo pip3 install beautifulsoup4 +sudo apt-get install virtualenv +virtualenv -p /usr/bin/python3 $virtFold +source $virtFold/bin/activate +pip3 install beautifulsoup4 diff --git a/parser.py b/parser.py index f957a7b..c7ac90e 100755 --- a/parser.py +++ b/parser.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- #!/usr/bin/python3 import os diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..f03289b --- /dev/null +++ b/start.sh @@ -0,0 +1,9 @@ +#!/bin/bash +if (( $# < 3 )); +then + echo "Erreur : pas assez d'arguments +usage : ./start.sh fichier_des_sites addresse_du_proxy port_du_proxy" + exit +fi +source venvParser/bin/activate +./parser.py $1 $2 $3