File size: 455 Bytes
451a703
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""Basic usage examples."""
from google_play_scraper import app, search


def get_app_info():
    """Get single app info."""
    result = app("com.facebook.katana")
    print(f"App: {result['title']}, Rating: {result['rating']}")


def search_apps():
    """Search for apps."""
    results = search("social media")
    for app in results:
        print(f"{app['title']} - {app['rating']}")


if __name__ == "__main__":
    get_app_info()
    search_apps()