GithubHelp home page GithubHelp logo

api.apkpure's Introduction

ApkPure Api Enpoint ✨

Search, Simplify detail & Downloadable from Apkpure.com

Python License


Features

  1. Simply to use
  2. Readable
  3. Using async request & multithreading for really fast request (not really sure)
  4. Easy accessing dictionary

Installing

  • git clone https://github.com/kurodenjiro/api.apkpure
  • cd api.apkpure
  • pip3 install -r requirements.txt

Start Server

python3 main.py

API document

Search

GET localhost:5000/query?search=<query string>

Get Detail

GET http://localhost:5000/appDetail?url=<url app> 

#Example : /pubg-tencent-1i/com.tencent.ig

Get Trending

GET http://localhost:5000/trending

How to

from apis import ApkPure

apk = ApkPure(return_as="dict")
#set 'dict' or 'rpc' for returning as

Search Application

search = api._search("pubg")
print(search)

Get Details from giving url

details = api.detail_from_url(search.results[0].url)
print(details)

# or you can get position of array when return data
search = api._search("pubg")
detail = api._detail(search, 1)
print(detail)

Get Trending

trending = api._trending()
print(trending)

Download application

download = api._download(url=detail.url_download, name=detail.title, ex=detail.extension, path="/downloads)

Buy Me A Coffee

Author

Kuro / Kuro

api.apkpure

api.apkpure's People

Contributors

alnyz avatar codacy-badger avatar kurodenjiro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

api.apkpure's Issues

Error during install

Hello i download the repo and follow the procedure.

When i run the command pip3 insall -r requirments.txt i got he following error:

s://files.pythonhosted.org/packages/17/61/32c3ab8951142e061587d957226b5683d1387fb22d95b4f69186d92616d1/typing_extensions-4.0.0-py3-none-any.whl
Collecting zipp>=0.5 (from importlib-metadata; python_version < "3.8"->click>=7.1.2->Flask->-r requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/bd/df/d4a4974a3e3957fd1c1fa3082366d7fff6e428ddb55f074bf64876f8e8ad/zipp-3.6.0-py3-none-any.whl
Installing collected packages: gevent, grequests, lxml, soupsieve, beautifulsoup4, bs4, typing-extensions, zipp, importlib-metadata, click, dataclasses, Werkzeug, MarkupSafe, Jinja2, itsdangerous, Flask
  Running setup.py install for gevent ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-c9ul2c7f/gevent/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-tv7754ge-record/install-record.txt --single-version-externally-managed --compile:
    /usr/lib64/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'cffi_modules'

Whats wrong with it ?

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.