Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deonna/google-maps-downloader
/ functions
Functions
49 in github.com/deonna/google-maps-downloader
⨍
Functions
49
◇
Types & classes
22
↓ 8 callers
Function
log_error
(msg: str)
scrape_instagram.py:46
↓ 6 callers
Function
log_info
(msg: str)
scrape_instagram.py:42
↓ 3 callers
Function
log_success
(msg: str)
scrape_instagram.py:50
↓ 3 callers
Function
log_warn
(msg: str)
scrape_instagram.py:54
↓ 2 callers
Function
ensureDir
(dirPath: string)
src/utils.ts:42
↓ 2 callers
Function
fetchWithHeaders
( url: string, options: RequestInit = {} )
src/placesApi.ts:70
↓ 2 callers
Function
formatStars
* Format a star rating as emoji stars
src/outputMarkdown.ts:26
↓ 2 callers
Function
slugify
(text: string)
src/utils.ts:8
↓ 1 callers
Function
analyzeReviews
( reviews: ReviewItem[], totalReviewCount: number )
src/reviewAnalyzer.ts:159
↓ 1 callers
Function
calculateAverageRating
* Calculate average rating from review items
src/reviewAnalyzer.ts:149
↓ 1 callers
Function
calculateStarsBreakdown
* Calculate star breakdown from available reviews * Note: With only ~5 reviews from the API, this is a sample, not total breakdown
src/reviewAnalyzer.ts:60
↓ 1 callers
Function
collect_posts_from_directory
Find and parse all JSON files in the output directory. Returns list of post dicts sorted by likes descending.
scrape_instagram.py:223
↓ 1 callers
Function
createPlacesApiClient
(apiKey: string)
src/placesApi.ts:69
↓ 1 callers
Function
describeParseResult
(result: ParsedUrl)
src/urlParser.ts:132
↓ 1 callers
Function
extractBusinessNameFromPath
* Extract business name from /place/Business+Name/ URL path
src/urlParser.ts:114
↓ 1 callers
Function
extractCommonThemes
* Extract common themes from review text using simple keyword frequency
src/reviewAnalyzer.ts:82
↓ 1 callers
Function
extractPlaceIdFromData
* Extract place_id from the data parameter in Google Maps URLs * The place_id is typically prefixed with "1s" in the data string
src/urlParser.ts:94
↓ 1 callers
Function
formatPriceLevel
* Format price level as dollar signs
src/outputMarkdown.ts:18
↓ 1 callers
Function
formatTestimonial
* Format a single testimonial
src/outputMarkdown.ts:184
↓ 1 callers
Function
formatTimestamp
()
src/utils.ts:35
↓ 1 callers
Function
generateMarkdown
* Generate the markdown content
src/outputMarkdown.ts:35
↓ 1 callers
Function
getTopTestimonials
(reviews: ReviewItem[])
src/reviewAnalyzer.ts:181
↓ 1 callers
Function
get_caption
Extract caption text from node, handling various formats.
scrape_instagram.py:147
↓ 1 callers
Function
get_login_user
Get Instagram login username from environment (optional).
scrape_instagram.py:77
↓ 1 callers
Function
isValidGoogleMapsUrl
(url: string)
src/urlParser.ts:17
↓ 1 callers
Function
loadConfig
()
src/config.ts:18
↓ 1 callers
Function
loadEnv
()
src/config.ts:37
↓ 1 callers
Function
load_env_file
Load environment variables from .env file if it exists.
scrape_instagram.py:62
↓ 1 callers
Function
main
Main entry point for the Instagram scraper.
scrape_instagram.py:357
↓ 1 callers
Function
main
()
src/index.ts:24
↓ 1 callers
Function
mapPriceLevel
* Map price level from API format to numeric * Places API (New) uses strings like "PRICE_LEVEL_MODERATE"
src/transformer.ts:24
↓ 1 callers
Function
parseGoogleMapsUrl
(url: string)
src/urlParser.ts:38
↓ 1 callers
Function
parse_args
Parse command-line arguments.
scrape_instagram.py:330
↓ 1 callers
Function
parse_instaloader_json
Parse a single instaloader JSON file into our format. Returns None if the file can't be parsed.
scrape_instagram.py:165
↓ 1 callers
Function
printUsage
()
src/index.ts:117
↓ 1 callers
Function
print_table
Print the top N posts as a formatted ASCII table.
scrape_instagram.py:257
↓ 1 callers
Function
run_instaloader_cli
Run the instaloader CLI to download post metadata. Returns the path to the output directory.
scrape_instagram.py:86
↓ 1 callers
Function
save_json
Save all posts to a combined JSON file.
scrape_instagram.py:305
↓ 1 callers
Function
selectBestMatch
(places: PlacesApiPlace[])
src/placesApi.ts:183
↓ 1 callers
Function
selectTopTestimonials
* Select top testimonials suitable for website display * Prefers longer, positive reviews with substantial content
src/reviewAnalyzer.ts:132
↓ 1 callers
Function
transformAddressComponents
* Transform address components from API format
src/transformer.ts:41
↓ 1 callers
Function
transformPhotos
* Transform photos and build URLs
src/transformer.ts:70
↓ 1 callers
Function
transformPlaceToBusinessData
( place: PlacesApiPlace, apiClient: PlacesApiClient, originalUrl: string )
src/transformer.ts:89
↓ 1 callers
Function
writeJsonOutput
(data: BusinessData)
src/outputJson.ts:15
↓ 1 callers
Function
writeMarkdownOutput
(data: BusinessData)
src/outputMarkdown.ts:210
Function
buildPhotoUrl
(photoName: string, maxWidth = 1600)
src/placesApi.ts:167
Function
getPlaceDetails
(placeId: string)
src/placesApi.ts:88
Function
searchPlaces
(query: string)
src/placesApi.ts:128
Function
transformReview
* Transform a single review from API format
src/transformer.ts:56