From 8c6de7fd579cf07044dab3376a5c92c35978181d Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 20 Jun 2023 07:59:55 +0000 Subject: automatic import of python-InstagramGraphQL --- .gitignore | 1 + python-instagramgraphql.spec | 208 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 210 insertions(+) create mode 100644 python-instagramgraphql.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..b3128a4 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/InstagramGraphQL-1.0.11.tar.gz diff --git a/python-instagramgraphql.spec b/python-instagramgraphql.spec new file mode 100644 index 0000000..a39bebd --- /dev/null +++ b/python-instagramgraphql.spec @@ -0,0 +1,208 @@ +%global _empty_manifest_terminate_build 0 +Name: python-InstagramGraphQL +Version: 1.0.11 +Release: 1 +Summary: InstagramGraphQL Unoffical API +License: MIT +URL: https://github.com/technerium/InstagramGraphQL +Source0: https://mirrors.aliyun.com/pypi/web/packages/46/35/f545fd0aa24a63f8e544c46bcac7321eeb99638e515e80edd27048edb291/InstagramGraphQL-1.0.11.tar.gz +BuildArch: noarch + +Requires: python3-SmoothAPI + +%description +# Fork of IGQL repo for our needs + +# InstagramGraphQL Unofficial API +Unofficial Instagram GraphQL API to collet data without authentication. + +### Features +* Search for people, hashtags and locations +* Get media data +* Get hashtag data +* Get location data +* Get all comments +* Get all likes +* Get specific user posts +* With sessionid supplied you can get data from private accounts +* There is a lot of cool data returned by GraphQL. For example `accessibility_caption` which you can train your image classifier through it + +###### NOTE: This is basically a API to collet data not for uploading or interacting with media. If you want more advanced IG library you should check [LevPasha's Instagram-API-python](https://github.com/LevPasha/Instagram-API-python) package. + +### Getting all media of a user +```python +from igql import InstagramGraphQL + + +igql_api = InstagramGraphQL() + +user = igql_api.get_user('instagram') +for media in user.timeline: # This is entry_data not the all media + print(media.image_url) + +for media_list in user.iterate_more_timeline_media(): + for media in media_list: + print(media.image_url) +``` + +## Installation +Library is avaible on PyPi so just run + +``` +pip install InstagramGraphQL +``` + + +# To learn more check [wiki page](https://github.com/FKLC/IGQL/wiki). + + + + +%package -n python3-InstagramGraphQL +Summary: InstagramGraphQL Unoffical API +Provides: python-InstagramGraphQL +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-InstagramGraphQL +# Fork of IGQL repo for our needs + +# InstagramGraphQL Unofficial API +Unofficial Instagram GraphQL API to collet data without authentication. + +### Features +* Search for people, hashtags and locations +* Get media data +* Get hashtag data +* Get location data +* Get all comments +* Get all likes +* Get specific user posts +* With sessionid supplied you can get data from private accounts +* There is a lot of cool data returned by GraphQL. For example `accessibility_caption` which you can train your image classifier through it + +###### NOTE: This is basically a API to collet data not for uploading or interacting with media. If you want more advanced IG library you should check [LevPasha's Instagram-API-python](https://github.com/LevPasha/Instagram-API-python) package. + +### Getting all media of a user +```python +from igql import InstagramGraphQL + + +igql_api = InstagramGraphQL() + +user = igql_api.get_user('instagram') +for media in user.timeline: # This is entry_data not the all media + print(media.image_url) + +for media_list in user.iterate_more_timeline_media(): + for media in media_list: + print(media.image_url) +``` + +## Installation +Library is avaible on PyPi so just run + +``` +pip install InstagramGraphQL +``` + + +# To learn more check [wiki page](https://github.com/FKLC/IGQL/wiki). + + + + +%package help +Summary: Development documents and examples for InstagramGraphQL +Provides: python3-InstagramGraphQL-doc +%description help +# Fork of IGQL repo for our needs + +# InstagramGraphQL Unofficial API +Unofficial Instagram GraphQL API to collet data without authentication. + +### Features +* Search for people, hashtags and locations +* Get media data +* Get hashtag data +* Get location data +* Get all comments +* Get all likes +* Get specific user posts +* With sessionid supplied you can get data from private accounts +* There is a lot of cool data returned by GraphQL. For example `accessibility_caption` which you can train your image classifier through it + +###### NOTE: This is basically a API to collet data not for uploading or interacting with media. If you want more advanced IG library you should check [LevPasha's Instagram-API-python](https://github.com/LevPasha/Instagram-API-python) package. + +### Getting all media of a user +```python +from igql import InstagramGraphQL + + +igql_api = InstagramGraphQL() + +user = igql_api.get_user('instagram') +for media in user.timeline: # This is entry_data not the all media + print(media.image_url) + +for media_list in user.iterate_more_timeline_media(): + for media in media_list: + print(media.image_url) +``` + +## Installation +Library is avaible on PyPi so just run + +``` +pip install InstagramGraphQL +``` + + +# To learn more check [wiki page](https://github.com/FKLC/IGQL/wiki). + + + + +%prep +%autosetup -n InstagramGraphQL-1.0.11 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-InstagramGraphQL -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot - 1.0.11-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..a743368 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +765d4532b4ac6e4797dd187635db973d InstagramGraphQL-1.0.11.tar.gz -- cgit v1.2.3