Saravanan666/pypi-org huggingface dataset:
Package: instagram-explore
instagram scrapping moduleInstallation$ pip install instagram-exploreUsageUserimportinstagram_exploreasie# Search user nameres=ie.user('instagram')print(res.data)# Next pagedata,cursor=ie.user('instagram',res.cursor)# Image onlyimages=ie.user_images('instagram').dataTagimportinstagram_exploreasie# Search tag nameres=ie.tag('cat')print(res.data)# Next pagedata,cursor=ie.tag('cat',res.cursor)# Image onlyimages=ie.tag_images('cat').dataLocationimportinstagram_exploreasie# Search location idres=ie.location('7226110')print(res.data)# Next pagedata,cursor=ie.location('7226110',res.cursor)# Image onlyimages=ie.location_images('7226110').dataMediaimportinstagram_exploreasie# Search media coderes=ie.media('BFRO_5WBQfc')print(res.data)# Image onlyimage=ie.media_image('BFRO_5WBQfc').data
Package: instagram-filters
Instagram-like image filters.Can be used in conjunction with the [instagram-client](https://bitbucket.org/acoomans/instagram-client) to upload the image after applying a filter.## DependenciesInstagram-filters depends on ImageMagick, which can be installed on a Mac with brew:brew install imagemagick## Installpython setup.py install## UsageFirst, import the client:from instagram_filters.filters import *Instanciate a filter and apply it:f = Nashville(“image.jpg”)
f.apply()Available filters:GothamKelvinLomoNashvilleToasterNoteThe filters change the image in-place. Be sure to copy it before applying any filter if you want to copy the original image.# TestsRun the tests with:cd tests
python test.py## CreditsThis library is inspired from the [“Create instagram filters with php” tutsplus tutorial](http://net.tutsplus.com/tutorials/php/create-instagram-filters-with-php/).
Package: instagram-insights
Partial report screenshotQuickstartInstall the package using:pip install instagram-insightsRun the python scripts using:insta-insights --page-id=124567890123 --token=098754321234567890 --num-timings=2 --num-tags=3Page ID and Token must be provided either as options or environment variable values.If both options and env variables are provided options will be preferred.Options supportedShort optionsLong optionsEnvironment variablesDescription-h--helpDisplay help-m--machine-learningWhether to use ML or not (currently not supported)--page-idFB_PAGE_IDInstagram Page ID--tokenFB_TOKENToken to access Facebook Graph API--num-timingsNumber of best timings needed--num-tagsNumber of best hashtags needed--graphsWhether to generate graphs or notPython version>= 3.7Packages needednumpypandas
Package: instagram-oauth
## Usage```from instagram_oauth import InstagramOauthAPIclient = InstagramOauthAPI(client_id=<client id>,client_secret=<client secret>redirect_uri=<redirect uri>)# Build the authorization url.url = client.auth_url()# Forward the user to the url above and then check for a callback# from Instagram to your server.code = <code received># Grab the access token.result = client.exchange_code_for_accesstoken(code)print(result['access_token'])print(result['user'])```
Package: instagram-python-lib
# instagram-pythoninstagram-python is an API wrapper for Instagram written in Python## Installing```pip install instagram-python-lib```## Usage```from instagram.client import Clientclient = Client('CLIENT_ID', 'CLIENT_SECRET')```Get authorization url```scopes = ['basic']url = client.authorization_url('REDIRECT_URI', scopes)```Exchange the code for a token```token = client.exchange_code('REDIRECT_URI', 'CODE')```Set the token```client.set_access_token('TOKEN')```Get account information```response = client.get_account(')```Get media```response = client.get_media('MEDIA_ID')```### WebhooksCreate subscription```response = client.create_subscription('user', 'media', 'A_SECRET_RANDOM_KEY', 'NOTIFICATION_URL')```Get subscriptions```response = client.get_subscriptions()```Delete subscription```response = client.delete_subscription('SUBSCRIPTION_ID')```
Package: instagram-reels
Reels DownloaderПомогает получить прямую ссылку на reels в разных разрешенияхУстановкаУстановить новейшую версию можно командой:pipinstallinstagram-reelsПример работыСкачивание reels с авторизацией:importasyncioimportrequestsfrominstagram_reels.main.InstagramAPIClientImplimportInstagramAPIClientImplSESSION_ID="your_session"asyncdefinit_client():# С авторизацией# С SESSION_IDclient=awaitInstagramAPIClientImpl().login_with_sessionid(sessionid=SESSION_ID).reels()# Или с логином и паролемclient=awaitInstagramAPIClientImpl().login_with_credentials(username="",password="").reels()# Или без авторизацииclient=awaitInstagramAPIClientImpl().reels()returnclientasyncdefdownload_reels(clip_name:str,reel_id:str):client=awaitinit_client()info=awaitclient.get(reel_id)withopen(clip_name,"wb+")asout_file:out_file.write((requests.get(info.videos[0].url)).content)asyncio.run(download_reels("example.mp4","1234"))ПримечаниеИспользуется два разных апи. В зависимости от того авторизованный клиент используется или нет. От этого завсит логика получения данных о рилсе.В случае если пользователь не авторизован можно получить видео рилса только в одном разрешении.
Package: instagramreport
Social Media ReportPequeño programa para generar un documento .docx con datos relevantes para juzgar el desempeño de una cuenta de empresa de Instagram y/o de una fanpage de Facebook. Ambas cuentas deben estar vinculadas previamente.UsoEl programa requiere entregar un token de acceso a la fanpage de Facebook asociada a la cuenta de Instagram. Para ello es necesario crear una cuenta en Facebook for developers (http://developers.facebook.com).
Package: instagram-story
Instagram Story DownloaderInstallationInstall using pip$pipinstall-Uinstagram-storyUsageusage: instagram-story [-h] [-f CONFIG_LOCATION] [-d DOWNLOAD_ONLY]

Instagram Story downloader

optional arguments:
  -h, --help            show this help message and exit
  -f CONFIG_LOCATION, --config-location CONFIG_LOCATION
                        Path for loading and storing config key file.
  -d DOWNLOAD_ONLY, --download-only DOWNLOAD_ONLY
                        Download stories for user id listed in the file.OptionsOn first run, a config file will be generated. The script will ask for required information such as your username, user id, cookies etc., cookies can be obtained from the developer tools of Google Chrome or Firefox.For exporting cookies you can install theEditThisCookiextension and followthis guidefor exporting cookies in comma-separated format. (For this you need to setExtension->Settings->Options->Choose the preferred export format for cookies->Semicolon separated name=value pairs).csrftoken=value;ds_user_id=value;ig_did=value;ig_nrcb=value;mid=value;rur=value;sessionid=value;shbid=value;shbts=value;Value ofds_user_idis your instagram user id.To periodically obtain stories from followed users, run this script at least every 24 hours. A Windows Scheduled Task or a Unix cron job is recommended to perform this automatically.Download only selected usersThere is a options to download only user ids listed ininclude.txttext file. If the option-dor--download-onlyand points to a valid text file with list of user ids then the story will be downloaded for only those id listed in this file.ExampleE:\>instagram-story
Enter your instagram username: instagrm-test
Enter your instagram user id: 501517166
Enter your instagram cookie: ig_did=52FED55D-4C3E-408F-997C-803D6385D39A; mid=c1e513b4990f_94603666c341ef61; csrftoken=AR6+5nk3N0S3xkTrRc9Pfg; ds_user_id=501517166; sessionid=501517166%3A94603666c341ef61%2a1; shbid=2051; shbts=1619505936.8752491; rur=ARN
Enter directory for saving media files (defaults to directory): B:\story
Config created at: C:\msys64\home\me\.instagram-story\config.json
Run again to download storiesLegal DisclaimerThis project is in no way affiliated with, authorized, maintained, sponsored or endorsed by Instagram or any of its affiliates or subsidiaries. This is an independent project that utilizes Instagram's unofficial API. Use at your own risk.
Package: instagramthiefBot
Instagram Thief is a bot to "steal" someone else's instagram posts, and automatically post them to your account (obviously tagging the owner). There are 5 methods: login() to login into your account; downloadByFee(number_of_photos) to download photos from your instagram feed; downloadByHashtag(hashtags, number_of_photos), to download photos from hashtag(s); closeDB() to close the database (this method is essential for the bot to work, so always put it at the end of your bot); finally postToAccount(description_post) to post these photos in your account. To initialize the bot:
bot = thief() (bot you can replace it with any word).
Package: instagram-to-discord
Instagram to Discord 💙Description 📝This is a simple abstraction layer for the Instagram API, which allows you to get the latest posts from a user and send them to a Discord channel.How it works? ⁉Installation 📦pipinstallinstagram-to-discordOr you can install it from the source code:gitclonehttps://github.com/jd-apprentice/instagram-to-discord.gitcdinstagram-to-discord
pipinstallrequirements.txtUsage 📸Get data from instagramFor that we have a script calledfetch_posts.shlocaled inutils/folder. You can use it like this:shutils/fetch_posts.sh<username>Or if you use Windows:script.bat<username>This will create a folder with the name of the user and inside it will be the photos and videos that the user has uploaded.importosfrominstagram-to-discordimportDiscordInstagramPostercurrent_folder=os.getcwd()ask_directory=input("Enter the directory where the photos are stored (Your Instagram username): ")folder_path=os.path.abspath(os.path.join(current_folder,ask_directory))webhook_url="YOUR_WEBHOOK_URL"footer_text="This is my title"footer_url="https://cdn.mos.cms.futurecdn.net/SeV6kiGf8ZsKGKNBrALzJN.jpg"title="!Sample Title!"discord_instagram_poster=DiscordInstagramPoster({"webhook_url":webhook_url,"footer_text":footer_text,"footer_icon":footer_url,"title":title})discord_instagram_poster.get_latest_json(folder_path)
Package: instagrapi
Fast and effective Instagram Private API wrapper (public+private requests and challenge resolver).Use the most recent version of the API from Instagram.Features:Performs Public API (web, anonymous) or Private API (mobile app, authorized)
requests depending on the situation (to avoid Instagram limits)Challenge Resolver have Email (as well as recipes for automating receive a code from email) and SMS handlersSupport upload a Photo, Video, IGTV, Clips (Reels), Albums and StoriesSupport work with User, Media, Insights, Collections, Location (Place), Hashtag and Direct objectsLike, Follow, Edit account (Bio) and much more elseInsights by account, posts and storiesBuild stories with custom background, font animation, swipe up link and mention usersIn the next release, account registration and captcha passing will appear
Package: instagrapi-add-exact-matches-to-location
Fast and effective Instagram Private API wrapper (public+private requests and challenge resolver).Use the most recent version of the API from Instagram.Features:Performs Public API (web, anonymous) or Private API (mobile app, authorized)
requests depending on the situation (to avoid Instagram limits)Challenge Resolver have Email (as well as recipes for automating receive a code from email) and SMS handlersSupport upload a Photo, Video, IGTV, Clips (Reels), Albums and StoriesSupport work with User, Media, Insights, Collections, Location (Place), Hashtag and Direct objectsLike, Follow, Edit account (Bio) and much more elseInsights by account, posts and storiesBuild stories with custom background, font animation, swipe up link and mention usersIn the next release, account registration and captcha passing will appear
Package: instagrapi-markatsteps
Fast and effective Instagram Private API wrapper (public+private requests and challenge resolver).Use the most recent version of the API from Instagram.Features:Performs Public API (web, anonymous) or Private API (mobile app, authorized)
requests depending on the situation (to avoid Instagram limits)Challenge Resolver have Email (as well as recipes for automating receive a code from email) and SMS handlersSupport upload a Photo, Video, IGTV, Clips (Reels), Albums and StoriesSupport work with User, Media, Insights, Collections, Location (Place), Hashtag and Direct objectsLike, Follow, Edit account (Bio) and much more elseInsights by account, posts and storiesBuild stories with custom background, font animation, swipe up link and mention usersIn the next release, account registration and captcha passing will appear
Package: instagrump
InstagrumpJust a simple Instagram Public API wrapper. The codes are self-explanatory.Example usageInstalling:pip3installinstagrumpImporting:frominstagrumpimportProfile,ContentInitialize Profile class:profile=Profile('ig_username')Initialize Content class:content=Content('url_with_shortcode_from_Profile')Example to get profile contents:[Content(i).get_content()foriinProfile('justinbieber').get_posts()]Helpful tipTo get all class attribute:dir(your_class_here)TodosWrite MORE DocumentationsSleepLicenseMIT
Package: instahashtag
📸 InstaHashtagUnofficial Python API wrapper forDisplayPurposes.Installingpip install instahashtagDocumentationDocumentation for this module can be foundhere.UseThis library is built as a layer-based module and may be used in different ways depending on the use
case of the user. In this README file only thewrappermodule is documented, but for further
use cases please check out the docs above.WrapperA complete Python wrapper around the API.frominstahashtagimportTag,Graph,Mapstag=Tag(hashtag="instagram")graph=Graph(hashtag="instagram")maps=Maps(x1=-80.48712034709753,y1=25.750749758162012,x2=-79.82794065959753,y2=25.854604964203453,zoom=12,)Check out the documentation above to understand how the objects behave, and what attributes are accessible.
Package: insta-hashtag-crawler
Getting StartedSupported Platformsinsta_hashtag_crawlerhas been tested against the following platforms:OS: Ubuntu 17.04 LTS, Windows 10Python: cPython >= 3.6Installationviapip(recommended)When python 3 is the only python distribution installed on the system:pipinstallinsta_hashtag_crawlerWith multiple versions of python distributions:(replacepython3with the version you want)python3-mpipinstallinsta_hashtag_crawlerUsingvenv:On Linuxpython3-mvenv.venvsource.venv/bin/activate
pipinstallinsta_hashtag_crawlerOn Windowspython3 -m venv .venv
cd .venv/Scripts
activate
pip install insta_hashtag_crawlerviasetup.pygitclonehttps://gitlab.com/point1304/insta_hashtag_crawler.gitcdinsta_hashtag_crawler
python3setup.pybdist
python3setup.pyinstallHow toinsta_hashtag_crawleris shipped with a very simple command line tooland this is what you are going to mostly make the use of.You can start crawling immediately on yourshellwith:insta-crawlyour-hashtagThis command will generates a series ofcsvformatted data in your"current working directory".csvfile name will be:${hashtag}yyyymmdd(${number}).csvOptional Arguments[--dir] [-d]You can set the directory where crawling results will be generatedby using [--dir] [-d] option.The [--dir] options can take an absolute or relative path as an argument.insta-crawl--dir/some/path/to/dirhashtag
insta-crawl--dirsome/relative/pathhashtag[--quiet] [-q]Turn on the [--quiet] [-q] flag if you want to mute the crawling logs,which by default are directed to thestdout.
This option will redirect any logs to OS-relevantdev/null.
Package: instainfo
InstaInfo!Project DescriptionIt provides an efficient and usefull way of fetching information of a particular isntagram username withouth the hassle of providing credentials.FunctionsGet Profile Picture URLCheck If the Profile is privateCheck If the Profile is a Business AccountCheck if the Profile is newly CreatedGet the number of followers of a profileGet the number of people that follow a particular profileExample# Import the module
import instainfo
# Create an instance of the class
user = instainfo.UserProfile('alanwalkermusic')
# Prints the users profile picture URL
print(user.GetProfilePicURL())
# Prints the number of follower the Profile has
print(user.FollowersCount())
# Prints the number of people that follow the profile
print(user.FollowedByCount())
# prints True if the profile is private
print(user.IsPrivate())
# prints True if the profile is business account
print(user.IsBusinessAccount())Screenshots
Package: instainteracts
InstaInteractsInstaInteracts is an automation tool for Instagram interactions (follow, like, comment).How to installYou can install instainteracts by running the following command:pip install instainteractsBasic usageThe following example shows how to use InstaInteracts:frominstainteractsimportInstaInteractsusername=''# your usernamepassword=''# your passwordhashtag='insta'# hashtag to interact withinsta=InstaInteracts(username,password)# for all optional arguments, read the docs belowinsta.comment_by_hashtag(hashtag,['Comment',u'Emojis supported 🔥'],# list of commentsonly_recent=True,# interact only with recent postslimit=1# limit of comments)insta.follow_by_hashtag(hashtag,limit=2# limit of follows)insta.like_by_hashtag(hashtag,limit=3# limit of likes)insta.unfollow(5)# will unfollow 5 usersDocsAll InstaInteracts methods are documented athttps://instainteracts.pages.dev
Package: instakit
Instakit: Filters and Tools; BYO Facebook BuyoutImage processors and filters - inspired by Instagram, built on top of the
PIL/Pillow, SciPy and scikit-image packages, accelerated with Cython, and
ready to use with PILKit and the django-imagekit framework.Included are filters for Atkinson and Floyd-Steinberg dithering, dot-pitch
halftoning (with GCR and per-channel pipeline processors), classes exposing
image-processing pipeline data as NumPy ND-arrays, Gaussian kernel functions,
processors for applying channel-based LUT curves to images from Photoshop
.acv files, imagekit-ready processors furnishing streamlined access to a wide
schmorgasbord of Pillow's many image adjustment algorithms (e.g. noise, blur,
and sharpen functions, histogram-based operations like Brightness/Contrast,
among others), an implementation of the entropy-based smart-crop algorithm
many will recognize from the easy-thumbnails Django app - and much more.
Package: install
installA package to install pip packages from within code.Requires Python 2.7+, 3.5+Usage:import install
install.install('pkg_you_want')

# ... after retrieving a requirements.txt from the web or somewhere else
install.install('requirements.txt', requirements=True)

# ... need arbitary options?
install.install('my_pkg', pip_options=['--isolated'], install_options=['--no-clean', '--pre'])
Package: installable
A stub package for testing if pip install is working.IntroductionThe intent of this package is to provide a simple module that can be easily installed and uninstalled.
This provides a straightforward mechanism for showing that an arbitrary environment is capable of installing third party modules viapip.
It is not intended to exercise the full feature set ofpiporsetuptools, but to provide a minimal existence proof of viability.UsageInstall:pip install installableor:pip install --user installableImport:>>> import installableor:python -c 'import installable'Uninstall:pip uninstall installable
Package: install_binaries
# `install_binaries` - install executable programs in bin/`install_binaries` is a tool to help you create wrappers aroundexecutable files.  It ensures that they're installed in a reasonabledirectory, and that they have their +x bit set.  It should work finewith old versions of pip and setuptools, and with Python 2.7 and up.It should work with both `sdist` and `bdist_wheel` packages.To use it, you have to do two things.  First, you need to add two linesto your `setup.py`:```setup(name="my_cool_app",...setup_requires=['install_binaries'],install_binaries=['my-binary', 'build/other-one'],)```This will install both `my-binary` and `other-one` to`.../my-virtualenv/bin` when your package is installed.Second, you need to make sure your binary is included in your`MANIFEST.in` file.  So that might look like:```include requirements.txtinclude VERSIONinclude my-binaryinclude build/other-one```If it's left out, it won't be included in the package that `pythonsetup.py sdist` creates.## Known limitationsIf your package gets installed as an egg, by using `easy_install` or`setup.py install`, the `install_binaries` code never gets called, so wehave no chance to install the binaries.  There may be a way around this,but I haven't found it.  `install_binaries` attempts to warn the user inthis situation.
Package: installcmd
installcmdCross platform package install commands.I use a lot of cross platform software. One annoying thing about it is that every platform has its own package manager with a unique install command. What's even worse is that sometimes the packages themselves are listed under slightly different names in different repositories. Installcmd solves this by detecting your platform and providing the correct command.InstallationInstall with:pip install installcmdUsageinstallcmdprints the install command, eg.:apt-get installinstallcmd refreshprints the package cache update command, eg.:apt-get updateinstallcmd noninteractiveprints the non-interactive install command, eg.:apt-get install --assume-yesinstallcmd pkgspec foo.ymlprints the correct name of the package for that platform, based on information in thefoo.yml.Installcmd just prints the command, but it's easy to make your shell execute it:# Without spec
$ $(installcmd) package-name

# With spec
$ $(installcmd pkgspec docker.yaml)It's not magic. It searches through a built-in list of commands for various platforms (seecontribution guide). The package name specs have to be provided by you (seepackage specs).The main use of this is writing portable installation scripts, such as in your dotfiles repo or Dockerfiles. You can let installcmd handle the platform detection logic instead of having to reimplement it again and again, which makes the scripts a lot cleaner.
Package: install-directives
install-directivesinstall-directivescontains a command line tool,install-directives, used to aid in post-install and post-uninstall steps for packages installed withpip. It also includes a class to represent packages installed withpip.UsageThe idea is to write a custom class that inherts fromInstallDirectives, overriding itspackage_nameandmodule_nameattributes and its_installand_uninstallfunctions. This should be placed in a package calledinstall_directivesin your module.For example, if your package is called "mypackage", you could set upInstallDirectivesfor it to run a script on install and another script on uninstall as such.# mypackage/install_directives/__init__.pyfrompython_install_directivesimportInstallDirectivesasInstallDirectives_classInstallDirectives(InstallDirectives_):def__init__(self)->None:super().__init__("mypackage")def_install(old_version:str,new_version:str)->None:run_script()def_uninstall(version:str)->None:run_another_script()These overridden functions will be called upon running the command line tool as such. You can utilize the current and incoming versions of the package to perform different actions on install, as they come in as parameters. Similarly, you can utilize the current version during uninstall.# Do a pip install of myproject firstinstall-directivesmyprojectinstall# Calls `run_script`install-directivesmyprojectuninstall# Calls `run_another_script`