Scraping followers of an instagram account

Overview

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

  1. from scrapinsta import Scrapinsta and instantiate

  2. 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

  1. from scrapinsta import Scrapinsta and instantiate

  2. 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:

LinkedIn

Twitter

Instagram

E-mail

You might also like...
A repository with scraping code and soccer dataset from understat.com.
A repository with scraping code and soccer dataset from understat.com.

UNDERSTAT - SHOTS DATASET As many people interested in soccer analytics know, Understat is an amazing source of information. They provide Expected Goa

Minimal set of tools to conduct stealthy scraping.

Stealthy Scraping Tools Do not use puppeteer and playwright for scraping. Explanation. We only use the CDP to obtain the page source and to get the ab

crypto currency scraping
crypto currency scraping

SCRYPTO What ? Crypto currencies scraping (At the moment, only bitcoin and ethereum crypto currencies are supported) How ? A python script is running

Scraping Thailand COVID-19 data from the DDC's tableau dashboard

Scraping COVID-19 data from DDC Dashboard Scraping Thailand COVID-19 data from the DDC's tableau dashboard. Data is updated at 07:30 and 08:00 daily.

A Web Scraping Program.

Web Scraping AUTHOR: Saurabh G. MTech Information Security, IIT Jammu. If you find this repository useful. I would appreciate if you Star it and Fork

PyQuery-based scraping micro-framework.

demiurge PyQuery-based scraping micro-framework. Supports Python 2.x and 3.x. Documentation: http://demiurge.readthedocs.org Installing demiurge $ pip

Universal Reddit Scraper - A comprehensive Reddit scraping command-line tool written in Python.
Universal Reddit Scraper - A comprehensive Reddit scraping command-line tool written in Python.

Universal Reddit Scraper - A comprehensive Reddit scraping command-line tool written in Python.

A web scraping pipeline project that retrieves TV and movie data from two sources, then transforms and stores data in a MySQL database.
A web scraping pipeline project that retrieves TV and movie data from two sources, then transforms and stores data in a MySQL database.

New to Streaming Scraper An in-progress web scraping project built with Python, R, and SQL. The scraped data are movie and TV show information. The go

A tool for scraping and organizing data from NewsBank API searches

nbscraper Overview This simple tool automates the process of copying, pasting, and organizing data from NewsBank API searches. Curerntly, nbscrape onl

Comments
  • Handling value errors

    Handling value errors

    In function get_user_followers and get_user_following:

    • Need to handle value errors when method are not as expected
    • Need to handle value errors when print_followers/print_following are not as expected
    opened by matheuskolln 1
  • Refactor and type checker

    Refactor and type checker

    In this PR, I have made:

    • Code refactored following DDD
    • Code with types
    • Poetry added to manage packages
    • Tests created

    By this, closes those issues:

    • #10
    • #11
    opened by matheuskolln 0
  • Update README.md

    Update README.md

    After resolving issues, have to update README.md with news from "future" latest update (v 0.0.3). News topics will be addeds, like:

    1. How to use with pip
    2. How to use without pip(cloning the source)
    3. Examples of new usage(functions needing a webdriver) If need more topics to be added, this will be edited.
    documentation 
    opened by matheuskolln 0
Owner
Matheus Kolln
Computer Engineering student at UFSC (Universidade Federal de Santa Catarina - Brasil). be happy coding :)
Matheus Kolln
Script for scrape user data like "id,username,fullname,followers,tweets .. etc" by Twitter's search engine .

TwitterScraper Script for scrape user data like "id,username,fullname,followers,tweets .. etc" by Twitter's search engine . Screenshot Data Users Only

Remax Alghamdi 19 Nov 17, 2022
Web Scraping Framework

Grab Framework Documentation Installation $ pip install -U grab See details about installing Grab on different platforms here http://docs.grablib.

null 2.3k Jan 4, 2023
Visual scraping for Scrapy

Portia Portia is a tool that allows you to visually scrape websites without any programming knowledge required. With Portia you can annotate a web pag

Scrapinghub 8.7k Jan 5, 2023
Scrapy, a fast high-level web crawling & scraping framework for Python.

Scrapy Overview Scrapy is a fast high-level web crawling and web scraping framework, used to crawl websites and extract structured data from their pag

Scrapy project 45.5k Jan 7, 2023
Web mining module for Python, with tools for scraping, natural language processing, machine learning, network analysis and visualization.

Pattern Pattern is a web mining module for Python. It has tools for: Data Mining: web services (Google, Twitter, Wikipedia), web crawler, HTML DOM par

Computational Linguistics Research Group 8.4k Jan 8, 2023
Async Python 3.6+ web scraping micro-framework based on asyncio

Ruia ??️ Async Python 3.6+ web scraping micro-framework based on asyncio. ⚡ Write less, run faster. Overview Ruia is an async web scraping micro-frame

howie.hu 1.6k Jan 1, 2023
Web scraping library and command-line tool for text discovery and extraction (main content, metadata, comments)

trafilatura: Web scraping tool for text discovery and retrieval Description Trafilatura is a Python package and command-line tool which seamlessly dow

Adrien Barbaresi 704 Jan 6, 2023
🥫 The simple, fast, and modern web scraping library

About gazpacho is a simple, fast, and modern web scraping library. The library is stable, actively maintained, and installed with zero dependencies. I

Max Humber 692 Dec 22, 2022
Transistor, a Python web scraping framework for intelligent use cases.

Web data collection and storage for intelligent use cases. transistor About The web is full of data. Transistor is a web scraping framework for collec

BOM Quote Manufacturing 212 Nov 5, 2022
A pure-python HTML screen-scraping library

Scrapely Scrapely is a library for extracting structured data from HTML pages. Given some example web pages and the data to be extracted, scrapely con

Scrapy project 1.8k Dec 31, 2022