| """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() |