Search found 2 matches

Go to advanced search

by bbbirkan
Sat Mar 27, 2021 2:54 am
Forum: Developing
Topic: Old and New Api - Python
Replies: 1
Views: 3821

Re: Old and New Api - Python

I found the solition import requests import json from pprint import pprint url = "https://www.opensubtitles.com/api/v1/login" headers = {'api-key':'YOUR API KEY', 'content-type': 'application/json'} user = {'username': 'YOUR USERNAME', 'password': "YOUR USER PASSWORD"} try: logi...
by bbbirkan
Fri Mar 26, 2021 1:36 am
Forum: Developing
Topic: Old and New Api - Python
Replies: 1
Views: 3821

Old and New Api - Python

I used old API with Python My code: from xmlrpc.client import ServerProxy from pprint import pprint import json imbd='tt0499549'#-->Avatar #'tt1723811'-->Shame 2011 server = ServerProxy("http://api.opensubtitles.org/xml-rpc") token = server.LogIn('username', 'password', 'eng', 'xname ')['t...

Go to advanced search