{"action":"created","issue":{"url":"https://api.github.com/repos/mps-youtube/pafy/issues/113","labels_url":"https://api.github.com/repos/mps-youtube/pafy/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/mps-youtube/pafy/issues/113/comments","events_url":"https://api.github.com/repos/mps-youtube/pafy/issues/113/events","html_url":"https://github.com/mps-youtube/pafy/issues/113","id":106895096,"number":113,"title":"Method to download stream in-memory","user":{"login":"sevagh","id":8574092,"avatar_url":"https://avatars.githubusercontent.com/u/8574092?v=3","gravatar_id":"","url":"https://api.github.com/users/sevagh","html_url":"https://github.com/sevagh","followers_url":"https://api.github.com/users/sevagh/followers","following_url":"https://api.github.com/users/sevagh/following{/other_user}","gists_url":"https://api.github.com/users/sevagh/gists{/gist_id}","starred_url":"https://api.github.com/users/sevagh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sevagh/subscriptions","organizations_url":"https://api.github.com/users/sevagh/orgs","repos_url":"https://api.github.com/users/sevagh/repos","events_url":"https://api.github.com/users/sevagh/events{/privacy}","received_events_url":"https://api.github.com/users/sevagh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-17T01:28:18Z","updated_at":"2015-09-17T13:44:12Z","closed_at":null,"body":"I am using pafy in a program to analyze the audio of YouTube videos. My solution now is to use Stream download() method to a TemporaryDirectory, since after analyzing audio I need to discard the file.\r\n\r\nI thought of implementing a download_in_memory() method which creates a file in-memory (with BytesIO or SpooledTemporaryFile or something) for the case where we want to download without writing to disk. Do you think it's a good idea?"},"comment":{"url":"https://api.github.com/repos/mps-youtube/pafy/issues/comments/141091073","html_url":"https://github.com/mps-youtube/pafy/issues/113#issuecomment-141091073","issue_url":"https://api.github.com/repos/mps-youtube/pafy/issues/113","id":141091073,"user":{"login":"ids1024","id":2263150,"avatar_url":"https://avatars.githubusercontent.com/u/2263150?v=3","gravatar_id":"","url":"https://api.github.com/users/ids1024","html_url":"https://github.com/ids1024","followers_url":"https://api.github.com/users/ids1024/followers","following_url":"https://api.github.com/users/ids1024/following{/other_user}","gists_url":"https://api.github.com/users/ids1024/gists{/gist_id}","starred_url":"https://api.github.com/users/ids1024/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ids1024/subscriptions","organizations_url":"https://api.github.com/users/ids1024/orgs","repos_url":"https://api.github.com/users/ids1024/repos","events_url":"https://api.github.com/users/ids1024/events{/privacy}","received_events_url":"https://api.github.com/users/ids1024/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T13:44:12Z","updated_at":"2015-09-17T13:44:12Z","body":"Oh, maybe this was unclear, but I meant that it could take a stream to write to as a parameter."}}