A package to scraping data from Instagram
Project description
ScrapInsta
A script to scraping data from Instagram
Install
First of all you can run:
pip install scrapinsta
After install 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 want to get users followed
amount: Number of users followed to scraping
method: By default is 'list'(returns a list), but can be 'txt' this will write a .txt with users followed
print_following: By default is 'false'(don't print users followed), but can be 'true' this will print users followed
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:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scrapinsta-0.0.1.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for scrapinsta-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e567e9d2cee12cac4d2bf29d5b7f8182805f05cd5ec8ce3131ad6c23e313e38c |
|
MD5 | 921802d917f546b08c21c2162f3e174d |
|
BLAKE2b-256 | 0feb2df99664f9019ae8b8299cad68a72a9d8f0a5843a0642c6efd47c1b34314 |