Installation of graphical user interface¶
The graphical user interface (GUI) is recommended for users who prefer not to write scripts or type commands in a terminal window.
Installation¶
- Open a terminal window:
- Install Python:
Enter
python3 --version
(or if doesn’t workpython --version
) in the terminal window to see if it’s already installed (the answer should readPython 3.X.X
where X is a number)
- Install the necessary software versions straight from the repositories by copying the following instructions into the terminal window (use
pip3
orpip
otherwise): pip3 install -U trafilatura[gui]
- Install the necessary software versions straight from the repositories by copying the following instructions into the terminal window (use
All instructions for the terminal window are followed by pressing the enter key.
Hint
Allow some time for the installation to run.
Getting started¶
Just type trafilatura_gui
in a terminal window and press the enter key.
Troubleshooting¶
Installation and terminal:
Installation instructions for trafilatura
Mac OS X:
This program needs access to the screen...
This problem is related to the way you installed Python or the shell you’re running:Clone the reposoitory and start with “pythonw trafilatura_gui/interface.py” (source)
Configure your virtual environment (Python3 and wxpython 4.1.0)
Linux (Debian/Ubuntu):
sudo apt install libgtk-3-dev
optional: to save compilation time, use a wxpython wheel from https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ (according to Linux distribution,
wxpython
version 4.1.0)