Comments (3)
I solved it by adding this line to /instagrapi/extractors.py
data["territory_validity_periods"] = data.get("territory_validity_periods") or {}
here is the full extract_track()
function
def extract_track(data):
data["cover_artwork_uri"] = data.get("cover_artwork_uri") or None
data["cover_artwork_thumbnail_uri"] = (
data.get("cover_artwork_thumbnail_uri") or None
)
items = re.findall(r"<BaseURL>(.+?)</BaseURL>", data["dash_manifest"])
data["uri"] = html.unescape(items[0]) if items else None
data["territory_validity_periods"] = data.get("territory_validity_periods") or {}
return Track(**data)
I can open a PR for this if needed.
from instagrapi.
@mi1acl please do, this fix is indeed very useful!
from instagrapi.
@ggrelet created PR #1801 for this issue
from instagrapi.
Related Issues (20)
- Request a feature of remixing a reel ( clip ) HOT 2
- [BUG] Story Upload Issue with Mentions, Links, Hashtags, and Locations Not Appearing in Data
- [BUG] Doesn't extract emails from businesses
- How does HikerAPI.com get 1000 likes and not 100? HOT 1
- Does it support cross-platform?
- [BUG]Has the download expired HOT 2
- media_info need array to fetch many media resources HOT 1
- [BUG] Error 400 when logging in HOT 37
- [BUG]
- how add users to a group chat
- [BUG] Getting Client Error when running from EC2 Instance HOT 1
- [BUG] Datalikers says insufficient funds
- [BUG] HOT 2
- [BUG] get_timeline_feed ignores max_id
- [BUG] Public API is not working HOT 2
- [BUG] There is a problem with Public graphgql request
- [BUG] HikerAPI not working
- [BUG] Status 201: JSONDecodeError in public_request (url=https://www.instagram.com/nike/?__a=1&__d=dis) >>> HOT 17
- TypeError: unsupported operand type(s) for |: 'type' and 'type'[BUG] HOT 3
- [BUG] Private API for searching hashtags throws a validation error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instagrapi.