Skip to content

Commit fea7552

Browse files
guylevinelulcao
andauthored
Fix set_smart_location_hashtags (InstaPy#6097)
* Fix set_smart_location_hashtags obsolete API url * Update CHANGELOG.md Co-authored-by: Daniel Carvallo <[email protected]>
1 parent b573976 commit fea7552

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ _The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
1515
- Added second `accept_igcookie_dialogue` to handled the second "cookie accept screen" that is not automatically accepted
1616

1717
### Fixed
18+
1819
- Move call to `get_following_status` above `web_address_navigator` inside `get_links_for_username` function
20+
- Fixed the correct URL `displaypurposes.com`, the old `displaypurposes.com` API is deprecated
1921

2022
## [0.6.13] - 2020-12-30
2123

instapy/instapy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ def set_smart_hashtags(
774774
def set_smart_location_hashtags(
775775
self, locations: list, radius: int = 10, limit: int = 3, log_tags: bool = True
776776
):
777-
"""Generate smart hashtags based on https://displaypurposes.com/map"""
777+
"""Generate smart hashtags based on https://apidisplaypurposes.com/map"""
778778
if locations is None:
779779
self.logger.error("set_smart_location_hashtags is misconfigured")
780780
return self
@@ -792,7 +792,7 @@ def set_smart_location_hashtags(
792792
bbox["lat_max"],
793793
radius,
794794
)
795-
url = "https://displaypurposes.com/local/?bbox={}".format(bbox_url)
795+
url = "https://apidisplaypurposes.com/local/?bbox={}".format(bbox_url)
796796

797797
req = requests.get(url)
798798
data = json.loads(req.text)

0 commit comments

Comments
 (0)