Skip to main content

🚀 langchain-playstore

PyPI version Python 3.10+ License: MIT

LangChain retrievers for the Google Play Store — fetch app details and retrieve user reviews as LangChain Document objects. No API keys required.

Perfect for building RAG applications that can analyze app store feedback, monitor sentiment, or scrape competitor features.

✨ Features

Retriever What it does API Key Required?
PlayStoreAppRetriever Fetch full metadata/details of an app ❌ No!
PlayStoreReviewsRetriever Fetch user reviews for an app ❌ No!

📦 Installation

pip install langchain-playstore

🚀 Quick Start

Fetch App Details

from langchain_playstore import PlayStoreAppRetriever

retriever = PlayStoreAppRetriever(
    lang="en",      # Default is "en"
    country="us"    # Default is "us"
)

# You can pass the app package ID or a full Play Store URL
docs = retriever.invoke("com.google.android.youtube")

app_metadata = docs[0].metadata
print(f"Name: {app_metadata['title']}")
print(f"Developer: {app_metadata['developer']}")
print(f"Score: {app_metadata['score']} / 5.0")
print(f"Installs: {app_metadata['installs']}")

Fetch App Reviews

from langchain_playstore import PlayStoreReviewsRetriever

retriever = PlayStoreReviewsRetriever(
    lang="en",
    country="us",
    max_results=5,
    sort="helpfulness", # "helpfulness", "newest", "rating"
)

docs = retriever.invoke("https://play.google.com/store/apps/details?id=com.whatsapp")

for doc in docs:
    print(f"⭐ {doc.metadata['score']} / 5")
    print(f"💬 {doc.page_content}")
    print(f"👍 {doc.metadata['thumbs_up']} upvotes\n")

📄 License

MIT — see LICENSE for details.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_playstore-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_playstore-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file langchain_playstore-0.1.0.tar.gz.

File metadata

  • Download URL: langchain_playstore-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.3

File hashes

Hashes for langchain_playstore-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d68cc22e4a722f8e029394c9620db30333dce9012565194971dd32d010a0570a
MD5 54b02d0ed5f41714a263a274dd1ee87f
BLAKE2b-256 cc53fa69915f2b52ec46006cfb1c88dcbb0877b3a2edbbc054f4232a32220ae0

See more details on using hashes here.

File details

Details for the file langchain_playstore-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_playstore-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b62e3a91fac739c057a35e9c8b21feab1e1c8445c0c220c6038c5e91c1e66da
MD5 1a7370568ebed4ecffc144358ab4fc1b
BLAKE2b-256 1d6e54c9bd697b10b79b4fb1c840a6ad0d0766d8d8a09704d5222457765077ef

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page