Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install snscrape via python pip




snscrape - A social networking service scraper, it belongs to Classifiers:

- License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)

When you know about this project and you want to new install snscrape to support your project or you get trouble as ModuleNotFoundError: No module named "snscrape" or ImportError: cannot import name "snscrape" in your project, let follow this tutorial to install snscrape



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_snscrape_env

- Active the virtual environment

test_snscrape_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_snscrape_env

- Active the virtual environment

source test_snscrape_env/bin/active


Step 2: OK, now, let flow below content to start the installation snscrape

To install snscrape on Windows(CMD):

py -m pip install snscrape

To install snscrape on Unix/macOs:

pip install snscrape


Step 3: If you want to install a specific snscrape version, add ==<snscrape version> to the end command line

Example:

pip install snscrape==0.1.3


Please see the version list below table:

VersionReleased dateCommand
snscrape 0.4.3.202201062022-01-06T03:34:14Windows:

py -m pip install snscrape==0.4.3.20220106

Unix/macOs:

pip install snscrape==0.4.3.20220106

snscrape 0.4.2.202112152021-12-15T18:26:20Windows:

py -m pip install snscrape==0.4.2.20211215

Unix/macOs:

pip install snscrape==0.4.2.20211215

snscrape 0.4.1.202112142021-12-14T23:19:54Windows:

py -m pip install snscrape==0.4.1.20211214

Unix/macOs:

pip install snscrape==0.4.1.20211214

snscrape 0.4.0.202112082021-12-08T08:44:20Windows:

py -m pip install snscrape==0.4.0.20211208

Unix/macOs:

pip install snscrape==0.4.0.20211208

snscrape 0.3.42020-07-08T22:09:06Windows:

py -m pip install snscrape==0.3.4

Unix/macOs:

pip install snscrape==0.3.4

snscrape 0.3.32020-06-24T21:27:24Windows:

py -m pip install snscrape==0.3.3

Unix/macOs:

pip install snscrape==0.3.3

snscrape 0.3.22020-05-30T01:21:29Windows:

py -m pip install snscrape==0.3.2

Unix/macOs:

pip install snscrape==0.3.2

snscrape 0.3.12020-03-05T01:03:24Windows:

py -m pip install snscrape==0.3.1

Unix/macOs:

pip install snscrape==0.3.1

snscrape 0.3.02019-07-01T17:45:47Windows:

py -m pip install snscrape==0.3.0

Unix/macOs:

pip install snscrape==0.3.0

snscrape 0.2.02019-04-21T21:05:59Windows:

py -m pip install snscrape==0.2.0

Unix/macOs:

pip install snscrape==0.2.0

snscrape 0.1.32018-10-09T15:18:19Windows:

py -m pip install snscrape==0.1.3

Unix/macOs:

pip install snscrape==0.1.3


Step 4: Otherwise, you can install snscrape from local archives:

Download the distribution file from snscrape-0.4.3.20220106.tar.gz or the specific snscrape version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_snscrape_downloaded_file>

On Unix/macOs:

pip install <path_to_snscrape_downloaded_file>


List distribution:


Project link:

- Homepage