google-play-scraper-enhanced
v1.0.1-beta.0
Published
Enhanced Google Play Store scraper with improved compatibility and performance
Maintainers
Readme
Google Play Scraper Enhanced
An enhanced Google Play Store scraper library with improved compatibility, performance, and reliability.
Features
- ✅ Enhanced Compatibility: Works with modern Node.js environments
- ✅ Improved Performance: Optimized data parsing and HTTP requests
- ✅ Better Error Handling: Comprehensive error handling and retry logic
- ✅ TypeScript Support: Full TypeScript definitions included
- ✅ Comprehensive Testing: Extensive integration tests
- ✅ Multi-language Support: Support for multiple languages and regions
- ✅ Rate Limiting: Built-in throttling and rate limiting
- ✅ Cookie Management: Advanced cookie handling for better reliability
Installation
npm install google-play-scraper-enhancedUsage
Basic Usage
import app from 'google-play-scraper-enhanced';
const appData = await app({
appId: 'com.google.android.apps.translate',
lang: 'en',
country: 'us'
});
console.log(appData);With Options
import app from 'google-play-scraper-enhanced';
const appData = await app({
appId: 'com.supercell.clashofclans',
lang: 'en',
country: 'us',
throttle: 1000, // 1 second delay
requestOptions: {
headers: {
'User-Agent': 'Custom User Agent'
}
}
});Multiple Languages
import app from 'google-play-scraper-enhanced';
// English
const enData = await app({
appId: 'com.google.android.apps.translate',
lang: 'en',
country: 'us'
});
// Spanish
const esData = await app({
appId: 'com.google.android.apps.translate',
lang: 'es',
country: 'es'
});
// French
const frData = await app({
appId: 'com.google.android.apps.translate',
lang: 'fr',
country: 'fr'
});API Reference
app(options)
Fetches detailed information about a Google Play Store app.
Parameters
appId(string, required): The app ID (e.g., 'com.google.android.apps.translate')lang(string, optional): Language code (default: 'en')country(string, optional): Country code (default: 'us')throttle(number, optional): Throttle delay in millisecondsrequestOptions(object, optional): Additional request options
Returns
Returns a Promise that resolves to an object containing:
{
appId: 'com.google.android.apps.translate',
title: 'Google Translate',
developer: 'Google LLC',
free: true,
priceText: 'Free',
url: 'https://play.google.com/store/apps/details?id=com.google.android.apps.translate',
// ... and many more fields
}Supported Languages
- English (en)
- Spanish (es)
- French (fr)
- German (de)
- Japanese (ja)
- And many more...
Testing
# Run all tests
npm test
# Run integration tests
npm run test:integration
# Run with coverage
npm run test:coverageDevelopment
# Install dependencies
npm install
# Build the library
npm run build
# Watch mode for development
npm run dev
# Lint code
npm run lint
# Type check
npm run type-checkLicense
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Changelog
v1.0.0
- Initial release
- Enhanced compatibility with modern Node.js
- Improved performance and reliability
- Comprehensive testing suite
- TypeScript support
