-
First download and install govc binary (Reference)
# extract govc binary to /usr/local/bin # note: the "tar" command must run with root permissions curl -L -o - "https://github.com/vmware/govmomi/releases/latest/download/govc_$(uname -s)_$(uname -m).tar.gz" | tar -C /usr/local/bin -xvzf - govc
-
put this script in your .bashrc/.zshrc, replace your credentials (Lines 6 to 16)
-
Use it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
txt = requests.get("https://cinematicket.org/api/v1/cinematicket/home/movies/6062/?city=235").text | |
jdat = json.loads(txt) | |
for cinema in jdat['cinemas'][0]['cinemas']: | |
for time in cinema['halls']: | |
for session in cinema['halls'][time]['sessions']: | |
start_time = session['start_at'] | |
if start_time == "2023-10-20T19:00:00+03:30": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
domains = open("Domains/api/getdomainsonly.json" ,"r") | |
jd = json.loads(domains.read()) | |
def get_domain_info(domain): | |
cookies = { | |
'ADD': 'YOUR_COOKIE_HERE' | |
} |
OlderNewer