[TOC]
This Tutorial shows how Python should be configured so the different scripts and plugins found in Wallapop work correctly.
7/11/2014 - First version of the document
Python is a scripting programming language, very light and fast for prototyping. It's currently being used in several scripts to automatize different processes such as downloading the different languages of the Wallapop Android app from Webtranslateit
The minimum python version supported is 2.7. The recommendation is to install the latest stable python version, being today Python 3.4.2 with release date of 10/13/2014
Obvious note: Be sure to download the correct installation file (So, do not download the source codes of python)
First : Install python following the installer indications.
Second : Check that Python home is set in the system environment variable Path. Open cmd and write
C:\ > path
Something like this response should be printed by cmd
C:\ >
C:\Program Files\StupidGame; F:\gsutil;C:\Python34;C:\ProgramData\chocolatey\bin;
Look for the Python folder. If found, skip to section PIP.
To modify the Global Path follow this tutorial
Usually Linux comes with python already installed. Check if update is required. Otherwise skip to pip section
First : Install python following the installer
Second : : Check that Python home is set in PATH. Try to run python from terminal
> python --version
Python 3.4.0
If python not found, Python home must be added to the environment variable PATH. There are different ways to add the folder to PATH. I suggest to do it in your own way. However, if you don't know how to do it, follow this method obtained from this link.
Add the following line to ~/.bash_profile:
export PATH=/usr/local/git/bin:$PATH
TIP: Everybody should know how to install Python. Put your shit together man.
Pip is a packet manager for Python, similar to apt-get for Linux. Pip will simplify enormously the installation of dependencies.
###Installation
Download this file (get-pip.py) and execute:
c:>python get-pip.py
Thanks to pip installing any python libraries is as easy as doing this:
c:> pip install library-name
As in 7/11/2014 the following libraries are required to execute wallapop scripts:
Library name: : requests