Skip to content

Adding Location Search#100

Closed
jhd3197 wants to merge 7 commits intosubzeroid:masterfrom
jhd3197:master
Closed

Adding Location Search#100
jhd3197 wants to merge 7 commits intosubzeroid:masterfrom
jhd3197:master

Conversation

@jhd3197
Copy link
Copy Markdown

@jhd3197 jhd3197 commented Feb 11, 2021

No description provided.

Adding blur and adjusting some default parameters
When location is set in post its doing a location search for the lat and picking the first one sometimes works sometimes it doesn't so i added a patch for that and also the TopSearchesPublicMixin.top_search was broken because it was doing a public request when it should be a private request
adding location_search_pk and location_search_name
Copy link
Copy Markdown
Contributor

@adw0rd adw0rd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Why need storyUpload in photo_upload? Use photo_upload_to_story for uploading photo to story
  2. extract_locationV2 - broken naming in the project (use extract_location_v2)
  3. Error using private requests in a public module, this makes no sense (You use private_request in public.py module)
  4. The rest of the functions for working with GEO (location) will still need to be checked, I did not see any tests on them

Comment thread README.md

* `path` - Path to source file
* `caption` - Text for you post
* `storyUpload` - If True will create a story from image (default: False)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why need storyUpload in photo_upload? Use photo_upload_to_story for uploading photo to story

"include_reel": "true",
}
response = self.public_request(url, params=params, return_json=True)
response = self.private_request(url, params=params)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error using private requests in a public module, this makes no sense (You use private_request in public.py module)

Comment thread instagrapi/extractors.py


def extract_locationV2(data):
"""Extract location info"""
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extract_locationV2 - broken naming in the project (use extract_location_v2)

@subzeroid
Copy link
Copy Markdown
Owner

Thanks for the early location-search work here. I did not merge this old branch directly because it also carried unrelated and already-rejected changes, but I did salvage the useful location-search part onto current master in a clean form: location_search_name(...), location_search_pk(...), proper top_search place/location extraction, docs, and focused regression coverage. Closing this old PR as superseded by that modernized implementation.

@subzeroid subzeroid closed this Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants