instagram-scraper | Scrapes an instagram user 's photos and videos | Scraper library
kandi X-RAY | instagram-scraper Summary
kandi X-RAY | instagram-scraper Summary
instagram-scraper is a command-line application written in Python that scrapes and downloads an instagram user’s photos and videos. Use responsibly.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Scrape all users
- Save metadata
- Merge JSON data into a single file
- Removes duplicate data
- Log out the user
- Download a media item
- Get key from location_dict
- Extract the timestamp from an item dict
- Ask the user to retry
- Authenticate with login
- Prompt user for login
- Generator for query followings
- Query the followings API
- Performs a threaded input on the input thread
- Logs out the session
- Authenticate as a guest
- Get a list of locations from a file
- Return a list of values from a file
- Search people
- Save cookies
instagram-scraper Key Features
instagram-scraper Examples and Code Snippets
location_list = [1234567,1234564567,1234578765432]
for i in location_list:
print("start powershell {python fast-instagram-scraper.py " + str(i) + " location --max_posts 500};")
# Result
start powershell {python fast-instagram-scraper.py 1234
object_id_or_string Location id or hashtag like 12345678 or truckfonalddump.
If --list, enter the item list here comma separated like
loveyourlife,justdoit,truckfonalddump
l
python fast-instagram-scraper.py byebyedonald,hellohereIam,georocks hashtag --threads 3
python fast-instagram-scraper.py byebyedonald,hellohereIam,[hereiam,goodlife,geography] hashtag --threads 3
6.62 files/s
1795 files total
2021-01-16 19:23:55
image_tag = soup.find('img', class_ = "_6q-tv")
profile_image = image_tag['src']
with open(r"C:\\Users\\stuar\\Instagram Scraper\\SourceCode/influencerpostlinks1.csv",'r') as csv_file:
csv_reading = csv.reader(csv_file)
for line in csv_reading:
links = line[1]
try:
Page = driver.ge
import instagram_scraper as isc
def getFollowers(username):
scraper = isc.InstagramScraper(usernames=[username], media_metadata=True, media_types=['none'])
scraper.scrape()
getFollowers("oukebdane_med_anis")
import instagram_scraper as isc
def getFollowers(username):
scraper = isc.InstagramScraper(username=username, media_metadata=True, media_types=[])
scraper.authenticate_as_guest()
scraper.scrape()
import json
with open('ig.json') as json_file:
dct = json.load(json_file)
df = pd.io.json.json_normalize(dct, record_path="GraphImages")[["edge_media_preview_like.count", "edge_media_to_comment.count"]].rename({"edge_media_preview_lik
from bs4 import BeautifulSoup
from selenium import webdriver
instagram_url = "https://www.instagram.com"
username = "jlo"
profile = instagram_url + "/" + username
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--h
Community Discussions
Trending Discussions on instagram-scraper
QUESTION
I need to run this command instagram-scraper "+ username +" --media-metadata --media-types none
inside a python executable file as you see bellow is the code I'm using to do that and it's working fine when I run it like that py test.py
, but after I turn it to an executable file using the PyInstaller command: pyinstaller -F test.py
, it doesn't work and it doesn't return any error, the console disapears directly after execution.
ANSWER
Answered 2021-Aug-01 at 20:32There's no way PyInstaller can understand os.system("instagram-scraper ...")
should also bundle up that instagram-scraper library. You'll need to use it without os.system()
for PyInstaller to be able to follow references; something like
QUESTION
I tried to run pip install instagram-scraper
and pip install igramscraper
in windows terminal but I got this error:
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
and full text of error is:
...ANSWER
Answered 2020-Oct-18 at 10:09I couldn't find an exact solution for this. I just used virtual environment for installing modules for this special project to remove such conflicts.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install instagram-scraper
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page