-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
286bffb
commit 6775e3b
Showing
5 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"Samsung A300H (a33g)": "a33g", "Samsung Galaxy C9 Pro (C900F/Y) (c9lte)": "c9lte", "Samsung Galaxy C9 Pro (China) (c9ltechn)": "c9ltechn", "Samsung Galaxy Tab 3 Lite 7.0 Value Edition (goyave)": "goyave", "Samsung Galaxy Grand Prime (SM-G530T/T1/W) (gprimelte)": "gprimelte", "Samsung Galaxy Grand Prime (SM-G530P) (gprimeltespr)": "gprimeltespr", "Samsung Galaxy Grand Prime (SM-S920L) (gprimeltetfnvzw)": "gprimeltetfnvzw", "Samsung Galaxy Grand Prime (SM-G530FZ) (gprimeltexx)": "gprimeltexx", "Samsung Galaxy Grand Prime (SM-G530MU) (gprimeltezt)": "gprimeltezt", "Samsung Galaxy Grand Neo VE/Plus 3G (GT-I9060I) (grandneove3g)": "grandneove3g", "Samsung Galaxy Grand Prime VE 3G (grandprimeve3g)": "grandprimeve3g", "Samsung Galaxy Tab E 9.6 3G/Wi-Fi (SM-T561/60) (gtel3g)": "gtel3g", "Samsung Galaxy Tab E (SM-T560NU) (gtelwifiue)": "gtelwifiue", "Samsung Galaxy Tab E (SM-T377P) (gtesqltespr)": "gtesqltespr", "Samsung Galaxy J1 2016 (SM-J120H) (j1x3g)": "j1x3g", "Samsung Galaxy J5 3G (SM-J500H) (j53gxx)": "j53gxx", "Samsung Galaxy J5 LTE (2015) (SM-J500F/G/M/NO/Y) (j5lte)": "sm-j500f/g/m/no/y", "Samsung Galaxy J5 LTE China (SM-J5008) (j5ltechn)": "j5ltechn", "Samsung Galaxy J5N LTE (SM-J500FN) (j5nlte)": "j5nlte", "Samsung Galaxy J5 LTE China CMCC (SM-J5108) (j5xltecmcc)": "j5xltecmcc", "Samsung Galaxy J5 LTE (2016) (SM-J510F/FN/MN/GN) (j5xnlte)": "sm-j510f/fn/mn/gn", "Samsung Galaxy On7 Pro (SM-G600FY) (o7prolte)": "o7prolte", "Samsung Galaxy S Fascinate (fascinatemtd)": "fascinatemtd", "Samsung Epic 4g (epicmtd)": "epicmtd", "Samsung Galaxy S10e Snapdragon (beyond0qlte)": "beyond0qlte", "Samsung Galaxy S10+ Snapdragon (beyond2qlte)": "beyond2qlte", "Samsung Galaxy S10 Snapdragon (beyond1qlte)": "beyond1qlte", "Samsung Galaxy S10+ 5g Sprint (beyondxq)": "beyondxq", "Samsung Galaxy A10 (a10)": "a10", "Samsung Galaxy A12 (a12nseea)": "a12nseea", "Samsung Galaxy A20 (a20)": "a20", "Samsung Galaxy A20e (a20e)": "a20e", "Samsung Galaxy A20s (a20s)": "a20s", "Samsung Galaxy A30 (a30)": "a30", "Samsung Galaxy A30s (a30s)": "a30s", "Samsung Galaxy A31 (a31)": "a31", "Samsung Galaxy A3 2016 (Exynos) (a3xelte)": "a3xelte", "Samsung Galaxy A3 2017 (a3y17lte)": "a3y17lte", "Samsung Galaxy A33 5G (a33x)": "a33x", "Samsung Galaxy A40 (a40)": "a40", "Samsung Galaxy A505F (a505f)": "a505f", "Samsung Galaxy A51 4G (a51)": "a51", "Samsung Galaxy A5 2016 (Exynos) (a5xelte)": "a5xelte", "Samsung Galaxy A5 2017 (a5y17lte)": "a5y17lte", "Samsung Galaxy A52 4G (a52q)": "a52q", "Samsung Galaxy A52s 5G (a52sxq)": "a52sxq", "Samsung Galaxy A60 (a60q)": "a60q", "Samsung Galaxy A70 (a70q)": "a70q", "Samsung Galaxy A7 2016 (Exynos) (a7xelte)": "a7xelte", "Samsung Galaxy A7 2017 (a7y17lte)": "a7y17lte", "Samsung Galaxy A72 4G (a72q)": "a72q", "Samsung Galaxy A8 2018 (jackpotlte)": "jackpotlte", "Samsung Galaxy A8+ 2018 (jackpot2lte)": "jackpot2lte", "Samsung Galaxy Ace 3 (loganreltexx)": "loganreltexx", "Samsung Galaxy Ace 4 (SM-G316HU) (vivalto5mve3g)": "vivalto5mve3g", "Samsung Galaxy Alpha (slte)": "slte", "Samsung Galaxy Core 2 SM-G355HN (kanas3gnfc)": "kanas3gnfc", "Samsung Galaxy Core Plus (cs02)": "cs02", "Samsung Galaxy Core Prime 3G SM-G360H (core33g)": "core33g", "Samsung Galaxy Core Prime Qualcomm (coreprimelte)": "coreprimelte", "Samsung Galaxy Core Prime Qualcomm CDMA (cprimeltemtr)": "cprimeltemtr", "Samsung Galaxy Express (expressltexx)": "expressltexx", "Samsung Galaxy Express 2 (wilcoxltexx)": "wilcoxltexx", "Samsung Galaxy Grand Duos (i9082)": "i9082", "Samsung Galaxy Grand Prime (fortuna3g)": "fortuna3g", "Samsung Galaxy Grand Prime VE (grandprimevelte)": "grandprimevelte", "Samsung Galaxy J1 Ace (SM-J110) (j1acelte)": "j1acelte", "Samsung Galaxy J1 ace DUOS (j1pop3g)": "j1pop3g", "Samsung Galaxy J2 (SM-J200) (j2lte)": "j2lte", "Samsung Galaxy J2 (2016) (SM-J210F) (j2xlte)": "sm-j210f", "Samsung Galaxy J2 2018 SM-J250G (j2y18lte)": "j2y18lte", "Samsung Galaxy J3 2016 Qualcomm (SM-J320YZ) (j3lte)": "j3lte", "Samsung Galaxy J4 (j4lte)": "j4lte", "Samsung Galaxy J4+ (j4primelte)": "j4primelte", "Samsung Galaxy J5 Prime (on5xelte)": "on5xelte", "Samsung Galaxy J7 (2015 Qualcomm Sprint) (j7ltespr)": "j7ltespr", "Samsung Galaxy J7 (2016 Exynos) (j7xelte)": "j7xelte", "Samsung Galaxy J7 (2017 Qualcomm Sprint) (j7popltespr)": "j7popltespr", "Samsung Galaxy J7 Exynos SM-J700 (j7elte)": "j7elte", "Samsung Galaxy M20 (m20lte)": "m20lte", "Samsung Galaxy M23/F23 (m23xq)": "m23xq", "Samsung Galaxy M30 (m30lte)": "m30lte", "Samsung Galaxy M30s (m30s)": "m30s", "Samsung Galaxy Mega 5.8 (crater)": "crater", "Samsung Galaxy Mega 6.3 (melius)": "melius", "Samsung Galaxy Nexus (GSM) (maguro)": "maguro", "Samsung Galaxy Nexus (Sprint) (toroplus)": "toroplus", "Samsung Galaxy Nexus (Verizon) (toro)": "toro", "Samsung Galaxy Note 10 Snapdragon (d2q)": "d2q", "Samsung Galaxy Note 10 (Exynos) (d1)": "d1", "Samsung Galaxy Note 10.1 (p4noterf)": "p4noterf", "Samsung Galaxy Note 10.1 (2014) Exynos Wi-Fi (lt03wifiue)": "lt03wifiue", "Samsung Galaxy Note 10.1 (2014) Qualcomm LTE (lt03ltexx)": "lt03ltexx", "Samsung Galaxy Note 10 5G (Exynos) (d1x)": "d1x", "Samsung Galaxy Note 10+ (Exynos) (d2s)": "d2s", "Samsung Galaxy Note 10+ 5G (Exynos) (d2x)": "d2x", "Samsung Galaxy Note 10 Snapdragon (d1q)": "d1q", "Samsung Galaxy Note 1 AT&T (quincyatt)": "quincyatt", "Samsung Galaxy Note 1 T-Mobile (quincytmo)": "quincytmo", "Samsung Galaxy Note 20 (Exynos) (c1s)": "c1s", "Samsung Galaxy Note 20 Ultra (Exynos) (c2s)": "c2s", "Samsung Galaxy Note 2 (t03g & t0lte)": "t03g&t0lte", "Samsung Galaxy Note 2 Sprint (l900)": "l900", "Samsung Galaxy Note 3 International Exynos (ha3g)": "ha3g", "Samsung Galaxy Note 3 Neo (hllte)": "hllte", "Samsung Galaxy Note 3 Neo N750 (hl3g)": "hl3g", "Samsung Galaxy Note 3 (Americas, China, Europe & Korea) (hlte)": "hlte", "Samsung Galaxy Note 4 Edge (Canada) (tbltecan)": "tbltecan", "Samsung Galaxy Note 4 Edge (International) (tblte)": "tblte", "Samsung Galaxy Note 4 Edge (Korea) (tbltedt)": "tbltedt", "Samsung Galaxy Note 4 Edge (Sprint) (tbltespr)": "tbltespr", "Samsung Galaxy Note 4 Edge (T-Mobile) (tbltetmo)": "tbltetmo", "Samsung Galaxy Note 4 Edge (US Celluar) (tblteusc)": "tblteusc", "Samsung Galaxy Note 4 Edge (Verizon) (tbltevzw)": "tbltevzw", "Samsung Galaxy Note 4 Exynos 3g (tre3gxx)": "tre3gxx", "Samsung Galaxy Note 4 Exynos LTE (treltexx) (treltexx)": "treltexx", "Samsung Galaxy Note 4 (Qualcomm) (trlte)": "trlte", "Samsung Galaxy Note 5 (noblelte)": "noblelte", "Samsung Galaxy Note 7 (China Qualcomm) (graceqltechn)": "graceqltechn", "Samsung Galaxy Note 7 (Exynos) (gracelte)": "gracelte", "Samsung Galaxy Note 8 (Exynos) (greatlte)": "greatlte", "Samsung Galaxy Note 8.0 (kona3g)": "kona3g", "Samsung Galaxy Note 8 (Snapdragon) (greatqlte)": "greatqlte", "Samsung Galaxy Note 9 (Exynos) (crownlte)": "crownlte", "Samsung Galaxy Note 9 (Snapdragon) (crownqltechn)": "crownqltechn", "Samsung Galaxy Note 1 N7000 (n7000)": "n7000", "Samsung Galaxy Note Pro 12.2 Exynos 3G (v1a3gxx)": "v1a3gxx", "Samsung Galaxy Note Pro 12.2 Wi-Fi (v1awifi)": "v1awifi", "Samsung Galaxy Note Pro 12.2 Qualcomm LTE SM-P905 (viennaltexx)": "viennaltexx", "Samsung Galaxy On5 (T-Mobile/MetroPCS) (on5ltetmo)": "on5ltetmo", "Samsung Galaxy Prevail (prevail2spr)": "prevail2spr", "Samsung Galaxy Reverb (iconvmu)": "iconvmu", "Samsung Galaxy Rugby Pro SGH-i547 (comanche)": "comanche", "Samsung Galaxy S10 (Exynos) (beyond1lte)": "beyond1lte", "Samsung Galaxy S10 5G (Exynos) (beyondx)": "beyondx", "Samsung Galaxy S10e (Exynos) (beyond0lte)": "beyond0lte", "Samsung Galaxy S10+ (Exynos) (beyond2lte)": "beyond2lte", "Samsung Galaxy S20 (Exynos) (x1s)": "x1s", "Samsung Galaxy S20+ (Exynos) (y2s)": "y2s", "Samsung Galaxy S20 Ultra (Exynos) (z3s)": "z3s", "Samsung Galaxy S2 Exhilarate SGH-i577 (exhilarate)": "exhilarate", "Samsung Galaxy S2 Hercules T-Mobile SGH-t989 (hercules)": "hercules", "Samsung Galaxy S II (International) (i9100)": "i9100", "Samsung Galaxy S2 Plus (s2ve)": "s2ve", "Samsung Galaxy S2 AT&T Skyrocket SGH-i727 (skyrocket)": "skyrocket", "Samsung Galaxy S3 AT&T (d2att)": "d2att", "Samsung Galaxy S3 Canada (d2can)": "d2can", "Samsung Galaxy S3 Cricket (d2cri)": "d2cri", "Samsung Galaxy S III (International Exynos) (m0)": "m0", "Samsung Galaxy S3 Metro PCS (d2mtr)": "d2mtr", "Samsung Galaxy S3 Mini (golden)": "golden", "Samsung Galaxy S3 Neo i9301i (s3ve3g)": "s3ve3g", "Samsung Galaxy S3 Sprint (d2spr)": "d2spr", "Samsung Galaxy S3 T-Mobile (d2tmo)": "d2tmo", "Samsung Galaxy S3 US Cellular (d2usc)": "d2usc", "Samsung Galaxy S3 Verizon (d2vzw)": "d2vzw", "Samsung Galaxy S4 Active (jactivelte)": "jactivelte", "Samsung Galaxy S4 C-Spire (jfltespi)": "jfltespi", "Samsung Galaxy S4 Google Edition (jgedlte)": "jgedlte", "Samsung Galaxy S4 Exynos (ja3g) (i9500)": "i9500", "Samsung Galaxy S4 (Qualcomm) (jflte)": "jflte", "Samsung Galaxy S4 LTE Advanced i9506 (ks01lte)": "ks01lte", "Samsung Galaxy S4 Mini (International 3G) (serrano3gxx)": "serrano3gxx", "Samsung Galaxy S4 Mini 64 bit ONLY (serranoveltexx)": "serranoveltexx", "Samsung Galaxy S4 Mini (International Dual SIM) (serranodsdd)": "serranodsdd", "Samsung Galaxy S4 Mini (International LTE) (serranoltexx)": "serranoltexx", "Samsung Galaxy S4 Mini Sprint (serranoltespr)": "serranoltespr", "Samsung Galaxy S4 Mini US Cellular (serranolteusc)": "serranolteusc", "Samsung Galaxy S4 (Value Edition) (jfvelte)": "jfvelte", "Samsung Galaxy S5 Exynos (k3g)": "k3g", "Samsung Galaxy S5 LTE-A (lentislte)": "lentislte", "Samsung Galaxy S5 Mini Exynos (kminilte)": "kminilte", "Samsung Galaxy S5 Mini (Qualcomm) (kmini3g)": "kmini3g", "Samsung Galaxy S5 Neo Exynos (s5neolte)": "s5neolte", "Samsung Galaxy S5 Plus (kccat6)": "kccat6", "Samsung Galaxy S5 Qualcomm (klte)": "klte", "Samsung Galaxy S6 (zeroflte)": "zeroflte", "Samsung Galaxy S6 edge (zerolte)": "zerolte", "Samsung Galaxy S6 edge+ (zenlte)": "zenlte", "Samsung Galaxy S7 (Exynos) (herolte)": "herolte", "Samsung Galaxy S7 (China Qualcomm) (heroqltechn)": "heroqltechn", "Samsung Galaxy S7 edge (Exynos) (hero2lte)": "hero2lte", "Samsung Galaxy S7 edge (China Qualcomm) (hero2qltechn)": "hero2qltechn", "Samsung Galaxy S8 (Exynos) (dreamlte)": "dreamlte", "Samsung Galaxy S8+ (Exynos) (dream2lte)": "dream2lte", "Samsung Galaxy S8+ (Snapdragon) (dream2qlte)": "dream2qlte", "Samsung Galaxy S8 (Snapdragon) (dreamqlte)": "dreamqlte", "Samsung Galaxy S9 (Exynos) (starlte)": "starlte", "Samsung Galaxy S9+ (Exynos) (star2lte)": "star2lte", "Samsung Galaxy S9+ (Snapdragon) (star2qltechn)": "star2qltechn", "Samsung Galaxy S9 (Snapdragon) (starqltechn)": "starqltechn", "Samsung Galaxy S Blaze 4G (SGH-T769)": "sgh-t769", "Samsung Galaxy Star Pro (logan2g)": "logan2g", "Samsung Galaxy Stellar 4G (SCH-i200 Verizon) (jaspervzw)": "jaspervzw", "Samsung Galaxy Tab 2 10.1 (GSM) (p5100)": "p5100", "Samsung Galaxy Tab 2 10.1 (Wi-Fi) (p5110)": "p5110", "Samsung Galaxy Tab 2 7.0 (GSM) (p3100)": "p3100", "Samsung Galaxy Tab 2 7.0 (Wi-Fi) (p3110)": "p3110", "Samsung Galaxy Tab 2 (GSM - unified) (espresso3g)": "espresso3g", "Samsung Galaxy Tab 2 (Wi-Fi - unified) (espressowifi)": "espressowifi", "Samsung Galaxy Tab 3 7.0 (lt02)": "lt02", "Samsung Galaxy Tab 3 7.0 LTE (lt02ltetmo)": "lt02ltetmo", "Samsung Galaxy Tab 3 Lite 7.0 (goya)": "goya", "Samsung Galaxy Tab 4 7.0 (degas)": "degas", "Samsung Galaxy Tab 7.7 (p6810)": "p6810", "Samsung Galaxy Tab A 10.1 LTE (2016) (gtaxllte)": "gtaxllte", "Samsung Galaxy Tab A 10.1 LTE (2016) with S-Pen (gtanotexllte)": "gtanotexllte", "Samsung Galaxy Tab A 10.1 WiFi (2016) (gtaxlwifi)": "gtaxlwifi", "Samsung Galaxy Tab A 10.1 WiFi (2016) with S-Pen (gtanotexlwifi)": "gtanotexlwifi", "Samsung Galaxy Tab A 8.0 LTE SM-A800i (a8hplte)": "a8hplte", "Samsung Galaxy Tab A 9.7 WiFi (gt510wifi)": "gt510wifi", "Samsung Galaxy Tab E 8.0 Exynos (gteslte)": "gteslte", "Samsung Galaxy Tab Pro 10.1 Wi-Fi (picassowifi)": "picassowifi", "Samsung Galaxy Tab Pro 10.1 LTE (picassoltexx)": "picassoltexx", "Samsung Galaxy Tab Pro 12.2 Wi-Fi (v2awifi)": "v2awifi", "Samsung Galaxy Tab Pro 8.4 LTE (mondrianlte)": "mondrianlte", "Samsung Galaxy Tab Pro 8.4 Wi-Fi (mondrianwifi)": "mondrianwifi", "Samsung Galaxy Tab S 10.5 WiFi (chagallwifi)": "chagallwifi", "Samsung Galaxy Tab S 10.5 LTE (chagalllte)": "chagalllte", "Samsung Galaxy Tab S2 8.0 LTE (2016) (gts28velte)": "gts28velte", "Samsung Galaxy Tab S2 8.0 2015 (LTE) (gts28ltexx)": "gts28ltexx", "Samsung Galaxy Tab S2 8.0 2015 (Wi-Fi) (gts28wifi)": "gts28wifi", "Samsung Galaxy Tab S2 8.0 WiFi (2016) (gts28vewifi)": "gts28vewifi", "Samsung Galaxy Tab S2 9.7 LTE (2016) (gts210velte)": "gts210velte", "Samsung Galaxy Tab S2 9.7 2015 (LTE) (gts210ltexx)": "gts210ltexx", "Samsung Galaxy Tab S2 9.7 2015 (Wi-Fi) (gts210wifi)": "gts210wifi", "Samsung Galaxy Tab S2 9.7 WiFi (2016) (gts210vewifi)": "gts210vewifi", "Samsung Galaxy Tab S4 (gts4lwifi)": "gts4lwifi", "Samsung Galaxy Tab S5e LTE (gts4lv)": "gts4lv", "Samsung Galaxy Tab S5e WiFi (gts4lvwifi)": "gts4lvwifi", "Samsung Galaxy Tab S6 LTE (gts6l)": "gts6l", "Samsung Galaxy Tab S6 WiFi (gts6lwifi)": "gts6lwifi", "Samsung Galaxy Tab S 8.4 WiFi (klimtwifi)": "klimtwifi", "Samsung Galaxy Tab S 8.4 LTE (klimtlte)": "klimtlte", "Samsung Galaxy Trend (kyleve)": "kyleve", "Samsung Galaxy Trend Lite (kylevess)": "kylevess", "Samsung Galaxy Trend Plus GT-S7580 (kylepro)": "kylepro", "Samsung Galaxy V SM-G313HZ (vivalto3gvn)": "vivalto3gvn", "Samsung Galaxy Victory 4G LTE (goghspr)": "goghspr", "Samsung Galaxy Xcover 3 (xcover3ltexx)": "xcover3ltexx", "Samsung Galaxy Xcover 3 VE (SM-G389F) (xcover3velte)": "xcover3velte", "Samsung Gear Live (sprat)": "sprat", "Samsung Nexus 10 (manta)": "manta", "Samsung Nexus S (crespo)": "crespo", "Samsung Nexus S 4G (crespo4g)": "crespo4g"} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import json | ||
import requests | ||
from bs4 import BeautifulSoup | ||
devices = {} | ||
request = requests.get("https://twrp.me/Devices/Samsung") | ||
parsed_request = BeautifulSoup(request.content, "html.parser") | ||
device_elements = parsed_request.select("ul#post-list > p > strong > a") | ||
# Iterate through the 'a' tags and extract the device name and corresponding code | ||
for element in device_elements: | ||
# Extract the device name (text within the 'a' tag) | ||
device_name = element.text.strip() | ||
|
||
# Split the href and get the last part, then remove the file extension | ||
code = element["href"].split("/")[-1].split(".")[0] | ||
|
||
# Extract all content within parentheses | ||
parentheses_content = [ | ||
content.strip() for content in device_name.split("(")[1:] | ||
] | ||
|
||
# Use the second set of parentheses if it exists; otherwise, use the first set of parentheses | ||
if len(parentheses_content) >= 2: | ||
code = parentheses_content[1].split(")")[0] | ||
else: | ||
code = parentheses_content[0].split(")")[0] | ||
|
||
# Remove spaces and convert to lowercase | ||
code = code.replace(" ", "").lower() | ||
|
||
# Add the device name and customized code to the dictionary | ||
devices[device_name] = code | ||
with open('devices.json', 'w') as file: | ||
json.dump(devices, file) |
This file contains 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