MCPcopy Create free account

hub / github.com/deonna/google-maps-downloader / functions

Functions49 in github.com/deonna/google-maps-downloader

↓ 8 callersFunctionlog_error
(msg: str)
scrape_instagram.py:46
↓ 6 callersFunctionlog_info
(msg: str)
scrape_instagram.py:42
↓ 3 callersFunctionlog_success
(msg: str)
scrape_instagram.py:50
↓ 3 callersFunctionlog_warn
(msg: str)
scrape_instagram.py:54
↓ 2 callersFunctionensureDir
(dirPath: string)
src/utils.ts:42
↓ 2 callersFunctionfetchWithHeaders
( url: string, options: RequestInit = {} )
src/placesApi.ts:70
↓ 2 callersFunctionformatStars
* Format a star rating as emoji stars
src/outputMarkdown.ts:26
↓ 2 callersFunctionslugify
(text: string)
src/utils.ts:8
↓ 1 callersFunctionanalyzeReviews
( reviews: ReviewItem[], totalReviewCount: number )
src/reviewAnalyzer.ts:159
↓ 1 callersFunctioncalculateAverageRating
* Calculate average rating from review items
src/reviewAnalyzer.ts:149
↓ 1 callersFunctioncalculateStarsBreakdown
* 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 callersFunctioncollect_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 callersFunctioncreatePlacesApiClient
(apiKey: string)
src/placesApi.ts:69
↓ 1 callersFunctiondescribeParseResult
(result: ParsedUrl)
src/urlParser.ts:132
↓ 1 callersFunctionextractBusinessNameFromPath
* Extract business name from /place/Business+Name/ URL path
src/urlParser.ts:114
↓ 1 callersFunctionextractCommonThemes
* Extract common themes from review text using simple keyword frequency
src/reviewAnalyzer.ts:82
↓ 1 callersFunctionextractPlaceIdFromData
* 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 callersFunctionformatPriceLevel
* Format price level as dollar signs
src/outputMarkdown.ts:18
↓ 1 callersFunctionformatTestimonial
* Format a single testimonial
src/outputMarkdown.ts:184
↓ 1 callersFunctionformatTimestamp
()
src/utils.ts:35
↓ 1 callersFunctiongenerateMarkdown
* Generate the markdown content
src/outputMarkdown.ts:35
↓ 1 callersFunctiongetTopTestimonials
(reviews: ReviewItem[])
src/reviewAnalyzer.ts:181
↓ 1 callersFunctionget_caption
Extract caption text from node, handling various formats.
scrape_instagram.py:147
↓ 1 callersFunctionget_login_user
Get Instagram login username from environment (optional).
scrape_instagram.py:77
↓ 1 callersFunctionisValidGoogleMapsUrl
(url: string)
src/urlParser.ts:17
↓ 1 callersFunctionloadConfig
()
src/config.ts:18
↓ 1 callersFunctionloadEnv
()
src/config.ts:37
↓ 1 callersFunctionload_env_file
Load environment variables from .env file if it exists.
scrape_instagram.py:62
↓ 1 callersFunctionmain
Main entry point for the Instagram scraper.
scrape_instagram.py:357
↓ 1 callersFunctionmain
()
src/index.ts:24
↓ 1 callersFunctionmapPriceLevel
* Map price level from API format to numeric * Places API (New) uses strings like "PRICE_LEVEL_MODERATE"
src/transformer.ts:24
↓ 1 callersFunctionparseGoogleMapsUrl
(url: string)
src/urlParser.ts:38
↓ 1 callersFunctionparse_args
Parse command-line arguments.
scrape_instagram.py:330
↓ 1 callersFunctionparse_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 callersFunctionprintUsage
()
src/index.ts:117
↓ 1 callersFunctionprint_table
Print the top N posts as a formatted ASCII table.
scrape_instagram.py:257
↓ 1 callersFunctionrun_instaloader_cli
Run the instaloader CLI to download post metadata. Returns the path to the output directory.
scrape_instagram.py:86
↓ 1 callersFunctionsave_json
Save all posts to a combined JSON file.
scrape_instagram.py:305
↓ 1 callersFunctionselectBestMatch
(places: PlacesApiPlace[])
src/placesApi.ts:183
↓ 1 callersFunctionselectTopTestimonials
* Select top testimonials suitable for website display * Prefers longer, positive reviews with substantial content
src/reviewAnalyzer.ts:132
↓ 1 callersFunctiontransformAddressComponents
* Transform address components from API format
src/transformer.ts:41
↓ 1 callersFunctiontransformPhotos
* Transform photos and build URLs
src/transformer.ts:70
↓ 1 callersFunctiontransformPlaceToBusinessData
( place: PlacesApiPlace, apiClient: PlacesApiClient, originalUrl: string )
src/transformer.ts:89
↓ 1 callersFunctionwriteJsonOutput
(data: BusinessData)
src/outputJson.ts:15
↓ 1 callersFunctionwriteMarkdownOutput
(data: BusinessData)
src/outputMarkdown.ts:210
FunctionbuildPhotoUrl
(photoName: string, maxWidth = 1600)
src/placesApi.ts:167
FunctiongetPlaceDetails
(placeId: string)
src/placesApi.ts:88
FunctionsearchPlaces
(query: string)
src/placesApi.ts:128
FunctiontransformReview
* Transform a single review from API format
src/transformer.ts:56