Skip to content

Instantly share code, notes, and snippets.

View jarrodnorwell's full-sized avatar
🏠
Working from home

Jarrod Norwell jarrodnorwell

🏠
Working from home
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<FileZilla3 version="3.61.0" platform="windows">
<Servers>
<Server>
<Host>us1.storj.io</Host>
<Port>7777</Port>
<Protocol>21</Protocol>
<User />
<Pass encoding="base64">MTR5TDZvTmhrUlZIbmhuMWRtcHg5WWJocFNSWTdpWG9HcXF4ekFKMjdQc2VWOTN5VjdlbTZ1dFFzakczNzF2N0x2NmZXWmNNZWJQcmhxM1pFdHVrcDdOVExzYUF6Qmo2TWQxUmhERzZkUzZzd0FWS3daZVBnMlpQSEpzcDl5U3ZwcVMyMTk4QW1wRDJ2TmJtUlJ2M3Z6Yno3cXVyZnlnVENTMkJNTWhpSDVlRUVtMVlqS0s2RVExYTJocUVmbnBTdTk5cEpjQmVMWmRTdVh4NnVOYzc5TWtveVdiMzlvVmNYM0xYSzlOandYSkVud2t2UVBETjhHUW94cUgxM2gzektCa3FjaDlqSGUzcVF2cG8xaw==</Pass>
<Logontype>1</Logontype>
from bs4 import BeautifulSoup
import json, os, requests
def device() -> dict:
response = requests.get('https://www.myfakeinfo.com/mobile/get-android-device-information.php')
soup = BeautifulSoup(response.text, 'html.parser')
container = soup.find('div', class_='container')
rows = container.find_all('div', class_='row')
import Foundation
struct Movie : Codable, Hashable {
// ...
}
struct MovieResults : Codable, Hashable {
let results: [Movie]
}
import Foundation
/*
WHY YOURS WASN'T WORKING
Line 320: Your URL is incorrect, it's missing the search in /1.0[/search/]setlists
Line 332: Setlist is not what is returned by the response (more below)
You can see that the response is the root dict and *setlist* is actually a key/value within.
- response
- setlist