Giter Club home page Giter Club logo

margatsni's Introduction

Margatsni

Margatsni is Minet, but only for Instagram. It adds some commands to get account-specific data. Most of the code comes from, or is strongly inspired by https://github.com/medialab/minet.

Le dossier reseaux contient des réseaux liés à un projet dans le cadre l'UV IC05 à l'UTC réalisé pendant le semestre P23. Le projet était de récupérer des posts liés aux hashtags concernant la réforme des retraites et d'analyser ces posts. Le dossier reseaux est donc une partie de cette analyse. Dans le dossier, vous trouverez un fichier reseaux.md expliquant leur construction et les interprétant.

Installation

You need to set up a python environment. Then, in your shell, type:

git clone [email protected]:MiguelLaura/margatsni.git
cd margatsni
make deps

Usage

Usage: python -m margatsni.cli [-h] [--version] {account,public,pub,,help} ...

Optional Arguments:
  --version                  show program's version number and exit
  -h, --help                 show this help message and exit

Actions:
  {account,public,pub,help}  Action to execute

Account

Commands about account-specific data (for example, recommendation data).

!!! WARNING !!! Instagram is able to detect this tool as a bot and block you.

To get posts from explore section:

python -m margatsni.cli account explore limit

where limit is the number of posts to retrieve. It will automatically get the authenticated cookie from firefox. To change the browser, use the argument --cookie (or -c) followed by your browser name (it supports "firefox", "chrome", "chromium", "opera" and "edge"), or followed directly by the cookie to use.

Public

Corresponds to the commands coming from Minet (https://github.com/medialab/minet).

Usage: python -m margatsni.cli public [-h] [-c COOKIE] [--rcfile RCFILE] [--silent] {comments,hashtag,post-infos,user-followers,user-following,user-infos,user-posts} ...

# Margatsni Public Command

Gather public data from Instagram.

Optional Arguments:
  -c, --cookie COOKIE           Authenticated cookie to use or browser from which to extract it (supports "firefox", "chrome", "chromium", "opera" and "edge"). Defaults to `firefox`. Can also be
                                configured in a .minetrc file as "instagram.cookie" or read from the MINET_INSTAGRAM_COOKIE env variable.
  --rcfile RCFILE               Custom path to a minet configuration file. More info about this here: https://github.com/medialab/minet/blob/master/docs/cli.md#minetrc
  --silent                      Whether to suppress all the log and progress bars. Can be useful when piping.
  -h, --help                    show this help message and exit

Subcommands:
  {comments,hashtag,post-infos,user-followers,user-following,user-infos,user-posts}
                                Subcommand to use.

To know more about a specific subcommand:

python -m margatsni.cli pub subcommand_name -h

margatsni's People

Contributors

miguellaura avatar

Watchers

 avatar

margatsni's Issues

Delete use of variadic_input for account commands

For now, still using variadic_input, but it is useless for what we want. As a consequence help message is incorrect, nothing prevents from entering a string instead of a number. When trying to remove variadic_input, problem occuring with decorator in margatsni.cli.account.explore.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.