ScrapInsta
A script to scraping data from Instagram
Install
First of all you can run:
pip install scrapinsta
After that you need to install these requirements:
-
You can install one-by-one:
- selenium
pip install selenium
- webdriver_manager
pip install webdriver_manager
- cryptography
pip install cryptography
Or install by requirements.txt
pip install -r requirements.txt
Scraping user followers
Usage
- from scrapinsta import Scrapinsta and instantiate
- Call function Scrapinsta.get_user_follower(account, amount, method, print_followers)
account: Account which want to get user followers
amount: Number of followers to scraping
method: By default is 'list'(returns a list), but can be 'txt' this will write a .txt with user followers
print_followers: By default is 'false'(don't print followers), but can be 'true' this will print followers
Example code:
from scrapinsta import Scrapinsta
account = 'nasa' # Account to get info
amount = 50
# Instantiate Scrapinsta
s = Scrapinsta()
# Testing: method = 'list'
list_followers = s.get_user_followers(account, amount, method='list', print_followers='true')
# Testing: method = 'txt'
s.get_user_followers(account, amount, method='txt', print_followers='true')
Scraping user following account
Usage
- from scrapinsta import Scrapinsta and instantiate
- Call function Scrapinsta.get_user_followings(account, amount, method, print_following)
account: Account which wants to get followed users
amount: Number of followed users to scraping
method: By default is 'list'(returns a list), but can be 'txt' this will write a .txt with followed users
print_following: By default is 'false'(don't print followed users), but can be 'true', this will print followed users
Example code:
from scrapinsta import Scrapinsta
account = 'nasa' # Account to get info
amount = 50
# Instantiate Scrapinsta
s = Scrapinsta()
# Testing: method = 'list'
list_following = s.get_user_followings(account, amount, method='list', print_following='true')
# Testing: method = 'txt'
s.get_user_followings(account, amount, method='txt', print_following='true')
Contact:
Metadata
Release files for scrapinsta 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scrapinsta-0.0.2.tar.gz | 4.5 kB | Without provenance | Details for scrapinsta-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scrapinsta-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for scrapinsta-0.0.2-py3-none-any.whl |
Total release size: 9.9 kB
Release files / scrapinsta-0.0.2.tar.gz
| Download URL | scrapinsta-0.0.2.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10f8f4f812c9f2a3c9ef62c6131abbe709ccef752ae44e31f42321a768ee5f31
|
|
BLAKE2b-256 checksum How to use checksums |
094fce71c18787114743050247ddb96ce5c2bd732b35f8dab229f41e8dfa2944
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.9.1
|
Release files / scrapinsta-0.0.2-py3-none-any.whl
| Download URL | scrapinsta-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
82b0acd8dd94f33a21808310a7e1fd1e8402ce23264d1b0471faa21e2e3a383f
|
|
BLAKE2b-256 checksum How to use checksums |
74275373d7e690e3718afea485d641b9efb2bb1229fe435336cb2a819e3f6e32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.9.1
|
Security for scrapinsta 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.