Advertisement
Najeebsk

IPTV-GITHUB-COUNTRY.pyw

Apr 16th, 2024 (edited)
3,432
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 20.48 KB | None | 0 0
  1. import tkinter as tk
  2. from tkinter import ttk, scrolledtext
  3. import requests
  4.  
  5. def save_m3u():
  6.     selected_country = country_combo.get()
  7.    
  8.     if selected_country:
  9.         url = countries[selected_country]
  10.    
  11.         response = requests.get(url)
  12.         filename = f"{selected_country}.m3u"
  13.        
  14.         with open(filename, "wb") as f:
  15.             f.write(response.content)
  16.         print(f"{filename} saved successfully!")
  17.  
  18. def show_m3u():
  19.     selected_country = country_combo.get()
  20.    
  21.     if selected_country:
  22.         url = countries[selected_country]
  23.    
  24.         response = requests.get(url)
  25.         display_m3u(response.content.decode("utf-8"))
  26.  
  27. def display_m3u(contents):
  28.     text.delete(1.0, tk.END)
  29.     text.insert(tk.END, contents)
  30.  
  31. # M3U URLs
  32. countries = {
  33.     "Afghanistan": "https://iptv-org.github.io/iptv/countries/af.m3u",
  34.     "๐Ÿ‡ฆ๐Ÿ‡ฑ Albania": "https://iptv-org.github.io/iptv/countries/al.m3u",
  35.     "๐Ÿ‡ฉ๐Ÿ‡ฟ Algeria": "https://iptv-org.github.io/iptv/countries/dz.m3u",
  36.     "๐Ÿ‡ฆ๐Ÿ‡ธ American Samoa": "https://iptv-org.github.io/iptv/countries/as.m3u",
  37.     "๐Ÿ‡ฆ๐Ÿ‡ฉ Andorra": "https://iptv-org.github.io/iptv/countries/ad.m3u",
  38.     "๐Ÿ‡ฆ๐Ÿ‡ด Angola": "https://iptv-org.github.io/iptv/countries/ao.m3u",
  39.     "๐Ÿ‡ฆ๐Ÿ‡ฎ Anguilla": "https://iptv-org.github.io/iptv/countries/ai.m3u",
  40.     "๐Ÿ‡ฆ๐Ÿ‡ฌ Antigua and Barbuda": "https://iptv-org.github.io/iptv/countries/ag.m3u",
  41.     "๐Ÿ‡ฆ๐Ÿ‡ท Argentina": "https://iptv-org.github.io/iptv/countries/ar.m3u",
  42.     "๐Ÿ‡ฆ๐Ÿ‡ฒ Armenia": "https://iptv-org.github.io/iptv/countries/am.m3u",
  43.     "๐Ÿ‡ฆ๐Ÿ‡ผ Aruba": "https://iptv-org.github.io/iptv/countries/aw.m3u",
  44.     "๐Ÿ‡ฆ๐Ÿ‡บ Australia": "https://iptv-org.github.io/iptv/countries/au.m3u",
  45.     "๐Ÿ‡ฆ๐Ÿ‡น Austria": "https://iptv-org.github.io/iptv/countries/at.m3u",
  46.     "๐Ÿ‡ฆ๐Ÿ‡ฟ Azerbaijan": "https://iptv-org.github.io/iptv/countries/az.m3u",
  47.     "๐Ÿ‡ง๐Ÿ‡ธ Bahamas": "https://iptv-org.github.io/iptv/countries/bs.m3u",
  48.     "๐Ÿ‡ง๐Ÿ‡ญ Bahrain": "https://iptv-org.github.io/iptv/countries/bh.m3u",
  49.     "๐Ÿ‡ง๐Ÿ‡ฉ Bangladesh": "https://iptv-org.github.io/iptv/countries/bd.m3u",
  50.     "๐Ÿ‡ง๐Ÿ‡ง Barbados": "https://iptv-org.github.io/iptv/countries/bb.m3u",
  51.     "๐Ÿ‡ง๐Ÿ‡พ Belarus": "https://iptv-org.github.io/iptv/countries/by.m3u",
  52.     "๐Ÿ‡ง๐Ÿ‡ช Belgium": "https://iptv-org.github.io/iptv/countries/be.m3u",
  53.     "๐Ÿ‡ง๐Ÿ‡ฟ Belize": "https://iptv-org.github.io/iptv/countries/bz.m3u",
  54.     "๐Ÿ‡ง๐Ÿ‡ฏ Benin": "https://iptv-org.github.io/iptv/countries/bj.m3u",
  55.     "๐Ÿ‡ง๐Ÿ‡ฒ Bermuda": "https://iptv-org.github.io/iptv/countries/bm.m3u",
  56.     "๐Ÿ‡ง๐Ÿ‡น Bhutan": "https://iptv-org.github.io/iptv/countries/bt.m3u",
  57.     "๐Ÿ‡ง๐Ÿ‡ด Bolivia": "https://iptv-org.github.io/iptv/countries/bo.m3u",
  58.     "๐Ÿ‡ง๐Ÿ‡ถ Bonaire": "https://iptv-org.github.io/iptv/countries/bq.m3u",
  59.     "๐Ÿ‡ง๐Ÿ‡ฆ Bosnia and Herzegovina": "https://iptv-org.github.io/iptv/countries/ba.m3u",
  60.     "๐Ÿ‡ง๐Ÿ‡ผ Botswana": "https://iptv-org.github.io/iptv/countries/bw.m3u",
  61.     "๐Ÿ‡ง๐Ÿ‡ป Bouvet Island": "https://iptv-org.github.io/iptv/countries/bv.m3u",
  62.     "๐Ÿ‡ง๐Ÿ‡ท Brazil": "https://iptv-org.github.io/iptv/countries/br.m3u",
  63.     "๐Ÿ‡ป๐Ÿ‡ฌ British Virgin Islands": "https://iptv-org.github.io/iptv/countries/vg.m3u",
  64.     "๐Ÿ‡ง๐Ÿ‡ณ Brunei": "https://iptv-org.github.io/iptv/countries/bn.m3u",
  65.     "๐Ÿ‡ง๐Ÿ‡ฌ Bulgaria": "https://iptv-org.github.io/iptv/countries/bg.m3u",
  66.     "๐Ÿ‡ง๐Ÿ‡ซ Burkina Faso": "https://iptv-org.github.io/iptv/countries/bf.m3u",
  67.     "๐Ÿ‡ง๐Ÿ‡ฎ Burundi": "https://iptv-org.github.io/iptv/countries/bi.m3u",
  68.     "๐Ÿ‡ฐ๐Ÿ‡ญ Cambodia": "https://iptv-org.github.io/iptv/countries/kh.m3u",
  69.     "๐Ÿ‡จ๐Ÿ‡ฒ Cameroon": "https://iptv-org.github.io/iptv/countries/cm.m3u",
  70.     "๐Ÿ‡จ๐Ÿ‡ฆ Canada": "https://iptv-org.github.io/iptv/countries/ca.m3u",
  71.     "๐Ÿ‡จ๐Ÿ‡ป Cape Verde": "https://iptv-org.github.io/iptv/countries/cv.m3u",
  72.     "๐Ÿ‡ง๐Ÿ‡ถ Caribbean Netherlands": "https://iptv-org.github.io/iptv/countries/bq.m3u",
  73.     "๐Ÿ‡ฐ๐Ÿ‡พ Cayman Islands": "https://iptv-org.github.io/iptv/countries/ky.m3u",
  74.     "๐Ÿ‡จ๐Ÿ‡ซ Central African Republic": "https://iptv-org.github.io/iptv/countries/cf.m3u",
  75.     "๐Ÿ‡น๐Ÿ‡ฉ Chad": "https://iptv-org.github.io/iptv/countries/td.m3u",
  76.     "๐Ÿ‡จ๐Ÿ‡ฑ Chile": "https://iptv-org.github.io/iptv/countries/cl.m3u",
  77.     "๐Ÿ‡จ๐Ÿ‡ณ China": "https://iptv-org.github.io/iptv/countries/cn.m3u",
  78.     "๐Ÿ‡จ๐Ÿ‡ฝ Christmas Island": "https://iptv-org.github.io/iptv/countries/cx.m3u",
  79.     "๐Ÿ‡จ๐Ÿ‡จ Cocos Islands": "https://iptv-org.github.io/iptv/countries/cc.m3u",
  80.     "๐Ÿ‡จ๐Ÿ‡ด Colombia": "https://iptv-org.github.io/iptv/countries/co.m3u",
  81.     "๐Ÿ‡ฐ๐Ÿ‡ฒ Comoros": "https://iptv-org.github.io/iptv/countries/km.m3u",
  82.     "๐Ÿ‡จ๐Ÿ‡ฌ Congo": "https://iptv-org.github.io/iptv/countries/cg.m3u",
  83.     "๐Ÿ‡จ๐Ÿ‡ฉ Congo DR": "https://iptv-org.github.io/iptv/countries/cd.m3u",
  84.     "๐Ÿ‡จ๐Ÿ‡ฐ Cook Islands": "https://iptv-org.github.io/iptv/countries/ck.m3u",
  85.     "๐Ÿ‡จ๐Ÿ‡ท Costa Rica": "https://iptv-org.github.io/iptv/countries/cr.m3u",
  86.     "๐Ÿ‡ญ๐Ÿ‡ท Croatia": "https://iptv-org.github.io/iptv/countries/hr.m3u",
  87.     "๐Ÿ‡จ๐Ÿ‡บ Cuba": "https://iptv-org.github.io/iptv/countries/cu.m3u",
  88.     "๐Ÿ‡จ๐Ÿ‡ผ Curaรงao": "https://iptv-org.github.io/iptv/countries/cw.m3u",
  89.     "๐Ÿ‡จ๐Ÿ‡พ Cyprus": "https://iptv-org.github.io/iptv/countries/cy.m3u",
  90.     "๐Ÿ‡จ๐Ÿ‡ฟ Czech Republic": "https://iptv-org.github.io/iptv/countries/cz.m3u",
  91.     "๐Ÿ‡ฉ๐Ÿ‡ฐ Denmark": "https://iptv-org.github.io/iptv/countries/dk.m3u",
  92.     "๐Ÿ‡ฉ๐Ÿ‡ฏ Djibouti": "https://iptv-org.github.io/iptv/countries/dj.m3u",
  93.     "๐Ÿ‡ฉ๐Ÿ‡ฒ Dominica": "https://iptv-org.github.io/iptv/countries/dm.m3u",
  94.     "๐Ÿ‡ฉ๐Ÿ‡ด Dominican Republic": "https://iptv-org.github.io/iptv/countries/do.m3u",
  95.     "๐Ÿ‡ช๐Ÿ‡จ Ecuador": "https://iptv-org.github.io/iptv/countries/ec.m3u",
  96.     "๐Ÿ‡ช๐Ÿ‡ฌ Egypt": "https://iptv-org.github.io/iptv/countries/eg.m3u",
  97.     "๐Ÿ‡ธ๐Ÿ‡ป El Salvador": "https://iptv-org.github.io/iptv/countries/sv.m3u",
  98.     "๐Ÿ‡ฌ๐Ÿ‡ถ Equatorial Guinea": "https://iptv-org.github.io/iptv/countries/gq.m3u",
  99.     "๐Ÿ‡ช๐Ÿ‡ท Eritrea": "https://iptv-org.github.io/iptv/countries/er.m3u",
  100.     "๐Ÿ‡ช๐Ÿ‡ช Estonia": "https://iptv-org.github.io/iptv/countries/ee.m3u",
  101.     "๐Ÿ‡ช๐Ÿ‡น Ethiopia": "https://iptv-org.github.io/iptv/countries/et.m3u",
  102.     "๐Ÿ‡ซ๐Ÿ‡ด Faroe Islands": "https://iptv-org.github.io/iptv/countries/fo.m3u",
  103.     "๐Ÿ‡ซ๐Ÿ‡ฏ Fiji": "https://iptv-org.github.io/iptv/countries/fj.m3u",
  104.     "๐Ÿ‡ซ๐Ÿ‡ฎ Finland": "https://iptv-org.github.io/iptv/countries/fi.m3u",
  105.     "๐Ÿ‡ซ๐Ÿ‡ท France": "https://iptv-org.github.io/iptv/countries/fr.m3u",
  106.     "๐Ÿ‡ฌ๐Ÿ‡ซ French Guiana": "https://iptv-org.github.io/iptv/countries/gf.m3u",
  107.     "๐Ÿ‡ต๐Ÿ‡ซ French Polynesia": "https://iptv-org.github.io/iptv/countries/pf.m3u",
  108.     "๐Ÿ‡น๐Ÿ‡ซ French Southern Territories": "https://iptv-org.github.io/iptv/countries/tf.m3u",
  109.     "๐Ÿ‡ฌ๐Ÿ‡ฆ Gabon": "https://iptv-org.github.io/iptv/countries/ga.m3u",
  110.     "๐Ÿ‡ฌ๐Ÿ‡ฒ Gambia": "https://iptv-org.github.io/iptv/countries/gm.m3u",
  111.     "๐Ÿ‡ฌ๐Ÿ‡ช Georgia": "https://iptv-org.github.io/iptv/countries/ge.m3u",
  112.     "๐Ÿ‡ฉ๐Ÿ‡ช Germany": "https://iptv-org.github.io/iptv/countries/de.m3u",
  113.     "๐Ÿ‡ฌ๐Ÿ‡ญ Ghana": "https://iptv-org.github.io/iptv/countries/gh.m3u",
  114.     "๐Ÿ‡ฌ๐Ÿ‡ฎ Gibraltar": "https://iptv-org.github.io/iptv/countries/gi.m3u",
  115.     "๐Ÿ‡ฌ๐Ÿ‡ท Greece": "https://iptv-org.github.io/iptv/countries/gr.m3u",
  116.     "๐Ÿ‡ฌ๐Ÿ‡ฑ Greenland": "https://iptv-org.github.io/iptv/countries/gl.m3u",
  117.     "๐Ÿ‡ฌ๐Ÿ‡ฉ Grenada": "https://iptv-org.github.io/iptv/countries/gd.m3u",
  118.     "๐Ÿ‡ฌ๐Ÿ‡ต Guadeloupe": "https://iptv-org.github.io/iptv/countries/gp.m3u",
  119.     "๐Ÿ‡ฌ๐Ÿ‡บ Guam": "https://iptv-org.github.io/iptv/countries/gu.m3u",
  120.     "๐Ÿ‡ฌ๐Ÿ‡น Guatemala": "https://iptv-org.github.io/iptv/countries/gt.m3u",
  121.     "๐Ÿ‡ฌ๐Ÿ‡ฌ Guernsey": "https://iptv-org.github.io/iptv/countries/gg.m3u",
  122.     "๐Ÿ‡ฌ๐Ÿ‡ณ Guinea": "https://iptv-org.github.io/iptv/countries/gn.m3u",
  123.     "๐Ÿ‡ฌ๐Ÿ‡ผ Guinea-Bissau": "https://iptv-org.github.io/iptv/countries/gw.m3u",
  124.     "๐Ÿ‡ฌ๐Ÿ‡พ Guyana": "https://iptv-org.github.io/iptv/countries/gy.m3u",
  125.     "๐Ÿ‡ญ๐Ÿ‡น Haiti": "https://iptv-org.github.io/iptv/countries/ht.m3u",
  126.     "๐Ÿ‡ญ๐Ÿ‡ณ Honduras": "https://iptv-org.github.io/iptv/countries/hn.m3u",
  127.     "๐Ÿ‡ญ๐Ÿ‡ฐ Hong Kong": "https://iptv-org.github.io/iptv/countries/hk.m3u",
  128.     "๐Ÿ‡ญ๐Ÿ‡บ Hungary": "https://iptv-org.github.io/iptv/countries/hu.m3u",
  129.     "๐Ÿ‡ฎ๐Ÿ‡ธ Iceland": "https://iptv-org.github.io/iptv/countries/is.m3u",
  130.     "๐Ÿ‡ฎ๐Ÿ‡ณ India": "https://iptv-org.github.io/iptv/countries/in.m3u",
  131.     "๐Ÿ‡ฎ๐Ÿ‡ฉ Indonesia": "https://iptv-org.github.io/iptv/countries/id.m3u",
  132.     "๐Ÿ‡ฎ๐Ÿ‡ท Iran": "https://iptv-org.github.io/iptv/countries/ir.m3u",
  133.     "๐Ÿ‡ฎ๐Ÿ‡ถ Iraq": "https://iptv-org.github.io/iptv/countries/iq.m3u",
  134.     "๐Ÿ‡ฎ๐Ÿ‡ช Ireland": "https://iptv-org.github.io/iptv/countries/ie.m3u",
  135.     "๐Ÿ‡ฎ๐Ÿ‡ฒ Isle of Man": "https://iptv-org.github.io/iptv/countries/im.m3u",
  136.     "๐Ÿ‡ฎ๐Ÿ‡ฑ Israel": "https://iptv-org.github.io/iptv/countries/il.m3u",
  137.     "๐Ÿ‡ฎ๐Ÿ‡น Italy": "https://iptv-org.github.io/iptv/countries/it.m3u",
  138.     "๐Ÿ‡ฏ๐Ÿ‡ฒ Jamaica": "https://iptv-org.github.io/iptv/countries/jm.m3u",
  139.     "๐Ÿ‡ฏ๐Ÿ‡ต Japan": "https://iptv-org.github.io/iptv/countries/jp.m3u",
  140.     "๐Ÿ‡ฏ๐Ÿ‡ช Jersey": "https://iptv-org.github.io/iptv/countries/je.m3u",
  141.     "๐Ÿ‡ฏ๐Ÿ‡ด Jordan": "https://iptv-org.github.io/iptv/countries/jo.m3u",
  142.     "๐Ÿ‡ฐ๐Ÿ‡ฟ Kazakhstan": "https://iptv-org.github.io/iptv/countries/kz.m3u",
  143.     "๐Ÿ‡ฐ๐Ÿ‡ช Kenya": "https://iptv-org.github.io/iptv/countries/ke.m3u",
  144.     "๐Ÿ‡ฐ๐Ÿ‡ฎ Kiribati": "https://iptv-org.github.io/iptv/countries/ki.m3u",
  145.     "๐Ÿ‡ฝ๐Ÿ‡ฐ Kosovo": "https://iptv-org.github.io/iptv/countries/xk.m3u",
  146.     "๐Ÿ‡ฐ๐Ÿ‡ผ Kuwait": "https://iptv-org.github.io/iptv/countries/kw.m3u",
  147.     "๐Ÿ‡ฐ๐Ÿ‡ฌ Kyrgyzstan": "https://iptv-org.github.io/iptv/countries/kg.m3u",
  148.     "๐Ÿ‡ฑ๐Ÿ‡ฆ Laos": "https://iptv-org.github.io/iptv/countries/la.m3u",
  149.     "๐Ÿ‡ฑ๐Ÿ‡ป Latvia": "https://iptv-org.github.io/iptv/countries/lv.m3u",
  150.     "๐Ÿ‡ฑ๐Ÿ‡ง Lebanon": "https://iptv-org.github.io/iptv/countries/lb.m3u",
  151.     "๐Ÿ‡ฑ๐Ÿ‡ธ Lesotho": "https://iptv-org.github.io/iptv/countries/ls.m3u",
  152.     "๐Ÿ‡ฑ๐Ÿ‡ท Liberia": "https://iptv-org.github.io/iptv/countries/lr.m3u",
  153.     "๐Ÿ‡ฑ๐Ÿ‡พ Libya": "https://iptv-org.github.io/iptv/countries/ly.m3u",
  154.     "๐Ÿ‡ฑ๐Ÿ‡ฎ Liechtenstein": "https://iptv-org.github.io/iptv/countries/li.m3u",
  155.     "๐Ÿ‡ฑ๐Ÿ‡น Lithuania": "https://iptv-org.github.io/iptv/countries/lt.m3u",
  156.     "๐Ÿ‡ฑ๐Ÿ‡บ Luxembourg": "https://iptv-org.github.io/iptv/countries/lu.m3u",
  157.     "๐Ÿ‡ฒ๐Ÿ‡ด Macao": "https://iptv-org.github.io/iptv/countries/mo.m3u",
  158.     "๐Ÿ‡ฒ๐Ÿ‡ฐ Macedonia": "https://iptv-org.github.io/iptv/countries/mk.m3u",
  159.     "๐Ÿ‡ฒ๐Ÿ‡ฌ Madagascar": "https://iptv-org.github.io/iptv/countries/mg.m3u",
  160.     "๐Ÿ‡ฒ๐Ÿ‡ผ Malawi": "https://iptv-org.github.io/iptv/countries/mw.m3u",
  161.     "๐Ÿ‡ฒ๐Ÿ‡พ Malaysia": "https://iptv-org.github.io/iptv/countries/my.m3u",
  162.     "๐Ÿ‡ฒ๐Ÿ‡ป Maldives": "https://iptv-org.github.io/iptv/countries/mv.m3u",
  163.     "๐Ÿ‡ฒ๐Ÿ‡ฑ Mali": "https://iptv-org.github.io/iptv/countries/ml.m3u",
  164.     "๐Ÿ‡ฒ๐Ÿ‡น Malta": "https://iptv-org.github.io/iptv/countries/mt.m3u",
  165.     "๐Ÿ‡ฒ๐Ÿ‡ญ Marshall Islands": "https://iptv-org.github.io/iptv/countries/mh.m3u",
  166.     "๐Ÿ‡ฒ๐Ÿ‡ถ Martinique": "https://iptv-org.github.io/iptv/countries/mq.m3u",
  167.     "๐Ÿ‡ฒ๐Ÿ‡ท Mauritania": "https://iptv-org.github.io/iptv/countries/mr.m3u",
  168.     "๐Ÿ‡ฒ๐Ÿ‡บ Mauritius": "https://iptv-org.github.io/iptv/countries/mu.m3u",
  169.     "๐Ÿ‡พ๐Ÿ‡น Mayotte": "https://iptv-org.github.io/iptv/countries/yt.m3u",
  170.     "๐Ÿ‡ฒ๐Ÿ‡ฝ Mexico": "https://iptv-org.github.io/iptv/countries/mx.m3u",
  171.     "๐Ÿ‡ซ๐Ÿ‡ฒ Micronesia": "https://iptv-org.github.io/iptv/countries/fm.m3u",
  172.     "๐Ÿ‡ฒ๐Ÿ‡ฉ Moldova": "https://iptv-org.github.io/iptv/countries/md.m3u",
  173.     "๐Ÿ‡ฒ๐Ÿ‡จ Monaco": "https://iptv-org.github.io/iptv/countries/mc.m3u",
  174.     "๐Ÿ‡ฒ๐Ÿ‡ณ Mongolia": "https://iptv-org.github.io/iptv/countries/mn.m3u",
  175.     "๐Ÿ‡ฒ๐Ÿ‡ช Montenegro": "https://iptv-org.github.io/iptv/countries/me.m3u",
  176.     "๐Ÿ‡ฒ๐Ÿ‡ธ Montserrat": "https://iptv-org.github.io/iptv/countries/ms.m3u",
  177.     "๐Ÿ‡ฒ๐Ÿ‡ฆ Morocco": "https://iptv-org.github.io/iptv/countries/ma.m3u",
  178.     "๐Ÿ‡ฒ๐Ÿ‡ฟ Mozambique": "https://iptv-org.github.io/iptv/countries/mz.m3u",
  179.     "๐Ÿ‡ฒ๐Ÿ‡ฒ Myanmar": "https://iptv-org.github.io/iptv/countries/mm.m3u",
  180.     "๐Ÿ‡ณ๐Ÿ‡ฆ Namibia": "https://iptv-org.github.io/iptv/countries/na.m3u",
  181.     "๐Ÿ‡ณ๐Ÿ‡ท Nauru": "https://iptv-org.github.io/iptv/countries/nr.m3u",
  182.     "๐Ÿ‡ณ๐Ÿ‡ต Nepal": "https://iptv-org.github.io/iptv/countries/np.m3u",
  183.     "๐Ÿ‡ณ๐Ÿ‡ฑ Netherlands": "https://iptv-org.github.io/iptv/countries/nl.m3u",
  184.     "๐Ÿ‡ณ๐Ÿ‡จ New Caledonia": "https://iptv-org.github.io/iptv/countries/nc.m3u",
  185.     "๐Ÿ‡ณ๐Ÿ‡ฟ New Zealand": "https://iptv-org.github.io/iptv/countries/nz.m3u",
  186.     "๐Ÿ‡ณ๐Ÿ‡ฎ Nicaragua": "https://iptv-org.github.io/iptv/countries/ni.m3u",
  187.     "๐Ÿ‡ณ๐Ÿ‡ช Niger": "https://iptv-org.github.io/iptv/countries/ne.m3u",
  188.     "๐Ÿ‡ณ๐Ÿ‡ฌ Nigeria": "https://iptv-org.github.io/iptv/countries/ng.m3u",
  189.     "๐Ÿ‡ณ๐Ÿ‡บ Niue": "https://iptv-org.github.io/iptv/countries/nu.m3u",
  190.     "๐Ÿ‡ณ๐Ÿ‡ซ Norfolk Island": "https://iptv-org.github.io/iptv/countries/nf.m3u",
  191.     "๐Ÿ‡ฐ๐Ÿ‡ต North Korea": "https://iptv-org.github.io/iptv/countries/kp.m3u",
  192.     "๐Ÿ‡ฒ๐Ÿ‡ต Northern Mariana Islands": "https://iptv-org.github.io/iptv/countries/mp.m3u",
  193.     "๐Ÿ‡ณ๐Ÿ‡ด Norway": "https://iptv-org.github.io/iptv/countries/no.m3u",
  194.     "๐Ÿ‡ด๐Ÿ‡ฒ Oman": "https://iptv-org.github.io/iptv/countries/om.m3u",
  195.     "๐Ÿ‡ต๐Ÿ‡ฐ Pakistan": "https://iptv-org.github.io/iptv/countries/pk.m3u",
  196.     "๐Ÿ‡ต๐Ÿ‡ผ Palau": "https://iptv-org.github.io/iptv/countries/pw.m3u",
  197.     "๐Ÿ‡ต๐Ÿ‡ธ Palestine": "https://iptv-org.github.io/iptv/countries/ps.m3u",
  198.     "๐Ÿ‡ต๐Ÿ‡ฆ Panama": "https://iptv-org.github.io/iptv/countries/pa.m3u",
  199.     "๐Ÿ‡ต๐Ÿ‡ฌ Papua New Guinea": "https://iptv-org.github.io/iptv/countries/pg.m3u",
  200.     "๐Ÿ‡ต๐Ÿ‡พ Paraguay": "https://iptv-org.github.io/iptv/countries/py.m3u",
  201.     "๐Ÿ‡ต๐Ÿ‡ช Peru": "https://iptv-org.github.io/iptv/countries/pe.m3u",
  202.     "๐Ÿ‡ต๐Ÿ‡ญ Philippines": "https://iptv-org.github.io/iptv/countries/ph.m3u",
  203.     "๐Ÿ‡ต๐Ÿ‡ณ Pitcairn": "https://iptv-org.github.io/iptv/countries/pn.m3u",
  204.     "๐Ÿ‡ต๐Ÿ‡ฑ Poland": "https://iptv-org.github.io/iptv/countries/pl.m3u",
  205.     "๐Ÿ‡ต๐Ÿ‡น Portugal": "https://iptv-org.github.io/iptv/countries/pt.m3u",
  206.     "๐Ÿ‡ต๐Ÿ‡ท Puerto Rico": "https://iptv-org.github.io/iptv/countries/pr.m3u",
  207.     "๐Ÿ‡ถ๐Ÿ‡ฆ Qatar": "https://iptv-org.github.io/iptv/countries/qa.m3u",
  208.     "๐Ÿ‡ท๐Ÿ‡ด Romania": "https://iptv-org.github.io/iptv/countries/ro.m3u",
  209.     "๐Ÿ‡ท๐Ÿ‡บ Russia": "https://iptv-org.github.io/iptv/countries/ru.m3u",
  210.     "๐Ÿ‡ท๐Ÿ‡ผ Rwanda": "https://iptv-org.github.io/iptv/countries/rw.m3u",
  211.     "๐Ÿ‡ผ๐Ÿ‡ธ Samoa": "https://iptv-org.github.io/iptv/countries/ws.m3u",
  212.     "๐Ÿ‡ธ๐Ÿ‡ฒ San Marino": "https://iptv-org.github.io/iptv/countries/sm.m3u",
  213.     "๐Ÿ‡ธ๐Ÿ‡น Sao Tome and Principe": "https://iptv-org.github.io/iptv/countries/st.m3u",
  214.     "๐Ÿ‡ธ๐Ÿ‡ฆ Saudi Arabia": "https://iptv-org.github.io/iptv/countries/sa.m3u",
  215.     "๐Ÿ‡ธ๐Ÿ‡ณ Senegal": "https://iptv-org.github.io/iptv/countries/sn.m3u",
  216.     "๐Ÿ‡ท๐Ÿ‡ธ Serbia": "https://iptv-org.github.io/iptv/countries/rs.m3u",
  217.     "๐Ÿ‡ธ๐Ÿ‡จ Seychelles": "https://iptv-org.github.io/iptv/countries/sc.m3u",
  218.     "๐Ÿ‡ธ๐Ÿ‡ฑ Sierra Leone": "https://iptv-org.github.io/iptv/countries/sl.m3u",
  219.     "๐Ÿ‡ธ๐Ÿ‡ฌ Singapore": "https://iptv-org.github.io/iptv/countries/sg.m3u",
  220.     "๐Ÿ‡ธ๐Ÿ‡ฝ Sint Maarten": "https://iptv-org.github.io/iptv/countries/sx.m3u",
  221.     "๐Ÿ‡ธ๐Ÿ‡ฐ Slovakia": "https://iptv-org.github.io/iptv/countries/sk.m3u",
  222.     "๐Ÿ‡ธ๐Ÿ‡ฎ Slovenia": "https://iptv-org.github.io/iptv/countries/si.m3u",
  223.     "๐Ÿ‡ธ๐Ÿ‡ง Solomon Islands": "https://iptv-org.github.io/iptv/countries/sb.m3u",
  224.     "๐Ÿ‡ธ๐Ÿ‡ด Somalia": "https://iptv-org.github.io/iptv/countries/so.m3u",
  225.     "๐Ÿ‡ฟ๐Ÿ‡ฆ South Africa": "https://iptv-org.github.io/iptv/countries/za.m3u",
  226.     "๐Ÿ‡ฐ๐Ÿ‡ท South Korea": "https://iptv-org.github.io/iptv/countries/kr.m3u",
  227.     "๐Ÿ‡ธ๐Ÿ‡ธ South Sudan": "https://iptv-org.github.io/iptv/countries/ss.m3u",
  228.     "๐Ÿ‡ช๐Ÿ‡ธ Spain": "https://iptv-org.github.io/iptv/countries/es.m3u",
  229.     "๐Ÿ‡ฑ๐Ÿ‡ฐ Sri Lanka": "https://iptv-org.github.io/iptv/countries/lk.m3u",
  230.     "๐Ÿ‡ง๐Ÿ‡ฑ St. Barthรฉlemy": "https://iptv-org.github.io/iptv/countries/bl.m3u",
  231.     "๐Ÿ‡ธ๐Ÿ‡ญ St. Helena": "https://iptv-org.github.io/iptv/countries/sh.m3u",
  232.     "๐Ÿ‡ฐ๐Ÿ‡ณ St. Kitts and Nevis": "https://iptv-org.github.io/iptv/countries/kn.m3u",
  233.     "๐Ÿ‡ฑ๐Ÿ‡จ St. Lucia": "https://iptv-org.github.io/iptv/countries/lc.m3u",
  234.     "๐Ÿ‡ฒ๐Ÿ‡ซ St. Martin": "https://iptv-org.github.io/iptv/countries/mf.m3u",
  235.     "๐Ÿ‡ต๐Ÿ‡ฒ St. Pierre and Miquelon": "https://iptv-org.github.io/iptv/countries/pm.m3u",
  236.     "๐Ÿ‡ป๐Ÿ‡จ St. Vincent and Grenadines": "https://iptv-org.github.io/iptv/countries/vc.m3u",
  237.     "๐Ÿ‡ธ๐Ÿ‡ฉ Sudan": "https://iptv-org.github.io/iptv/countries/sd.m3u",
  238.     "๐Ÿ‡ธ๐Ÿ‡ท Suriname": "https://iptv-org.github.io/iptv/countries/sr.m3u",
  239.     "๐Ÿ‡ธ๐Ÿ‡ฏ Svalbard and Jan Mayen": "https://iptv-org.github.io/iptv/countries/sj.m3u",
  240.     "๐Ÿ‡ธ๐Ÿ‡ฟ Swaziland": "https://iptv-org.github.io/iptv/countries/sz.m3u",
  241.     "๐Ÿ‡ธ๐Ÿ‡ช Sweden": "https://iptv-org.github.io/iptv/countries/se.m3u",
  242.     "๐Ÿ‡จ๐Ÿ‡ญ Switzerland": "https://iptv-org.github.io/iptv/countries/ch.m3u",
  243.     "๐Ÿ‡ธ๐Ÿ‡พ Syria": "https://iptv-org.github.io/iptv/countries/sy.m3u",
  244.     "๐Ÿ‡น๐Ÿ‡ผ Taiwan": "https://iptv-org.github.io/iptv/countries/tw.m3u",
  245.     "๐Ÿ‡น๐Ÿ‡ฏ Tajikistan": "https://iptv-org.github.io/iptv/countries/tj.m3u",
  246.     "๐Ÿ‡น๐Ÿ‡ฟ Tanzania": "https://iptv-org.github.io/iptv/countries/tz.m3u",
  247.     "๐Ÿ‡น๐Ÿ‡ญ Thailand": "https://iptv-org.github.io/iptv/countries/th.m3u",
  248.     "๐Ÿ‡น๐Ÿ‡ฑ Timor-Leste": "https://iptv-org.github.io/iptv/countries/tl.m3u",
  249.     "๐Ÿ‡น๐Ÿ‡ฌ Togo": "https://iptv-org.github.io/iptv/countries/tg.m3u",
  250.     "๐Ÿ‡น๐Ÿ‡ฐ Tokelau": "https://iptv-org.github.io/iptv/countries/tk.m3u",
  251.     "๐Ÿ‡น๐Ÿ‡ด Tonga": "https://iptv-org.github.io/iptv/countries/to.m3u",
  252.     "๐Ÿ‡น๐Ÿ‡น Trinidad and Tobago": "https://iptv-org.github.io/iptv/countries/tt.m3u",
  253.     "๐Ÿ‡น๐Ÿ‡ณ Tunisia": "https://iptv-org.github.io/iptv/countries/tn.m3u",
  254.     "๐Ÿ‡น๐Ÿ‡ท Turkey": "https://iptv-org.github.io/iptv/countries/tr.m3u",
  255.     "๐Ÿ‡น๐Ÿ‡ฒ Turkmenistan": "https://iptv-org.github.io/iptv/countries/tm.m3u",
  256.     "๐Ÿ‡น๐Ÿ‡จ Turks and Caicos Islands": "https://iptv-org.github.io/iptv/countries/tc.m3u",
  257.     "๐Ÿ‡น๐Ÿ‡ป Tuvalu": "https://iptv-org.github.io/iptv/countries/tv.m3u",
  258.     "๐Ÿ‡บ๐Ÿ‡ฌ Uganda": "https://iptv-org.github.io/iptv/countries/ug.m3u",
  259.     "๐Ÿ‡บ๐Ÿ‡ฆ Ukraine": "https://iptv-org.github.io/iptv/countries/ua.m3u",
  260.     "๐Ÿ‡ฆ๐Ÿ‡ช United Arab Emirates": "https://iptv-org.github.io/iptv/countries/ae.m3u",
  261.     "๐Ÿ‡ฌ๐Ÿ‡ง United Kingdom": "https://iptv-org.github.io/iptv/countries/gb.m3u",
  262.     "๐Ÿ‡บ๐Ÿ‡ธ United States": "https://iptv-org.github.io/iptv/countries/us.m3u",
  263.     "๐Ÿ‡บ๐Ÿ‡พ Uruguay": "https://iptv-org.github.io/iptv/countries/uy.m3u",
  264.     "๐Ÿ‡บ๐Ÿ‡ฟ Uzbekistan": "https://iptv-org.github.io/iptv/countries/uz.m3u",
  265.     "๐Ÿ‡ป๐Ÿ‡บ Vanuatu": "https://iptv-org.github.io/iptv/countries/vu.m3u",
  266.     "๐Ÿ‡ป๐Ÿ‡ฆ Vatican City": "https://iptv-org.github.io/iptv/countries/va.m3u",
  267.     "๐Ÿ‡ป๐Ÿ‡ช Venezuela": "https://iptv-org.github.io/iptv/countries/ve.m3u",
  268.     "๐Ÿ‡ป๐Ÿ‡ณ Vietnam": "https://iptv-org.github.io/iptv/countries/vn.m3u",
  269.     "๐Ÿ‡ป๐Ÿ‡ฎ Virgin Islands": "https://iptv-org.github.io/iptv/countries/vi.m3u",
  270.     "๐Ÿ‡ผ๐Ÿ‡ซ Wallis and Futuna": "https://iptv-org.github.io/iptv/countries/wf.m3u",
  271.     "๐Ÿ‡ช๐Ÿ‡ญ Western Sahara": "https://iptv-org.github.io/iptv/countries/eh.m3u",
  272.     "๐Ÿ‡พ๐Ÿ‡ช Yemen": "https://iptv-org.github.io/iptv/countries/ye.m3u",
  273.     "๐Ÿ‡ฟ๐Ÿ‡ฒ Zambia": "https://iptv-org.github.io/iptv/countries/zm.m3u",
  274.     "๐Ÿ‡ฟ๐Ÿ‡ผ Zimbabwe": "https://iptv-org.github.io/iptv/countries/zw.m3u"
  275. }
  276.  
  277.  
  278. # GUI setup
  279. root = tk.Tk()
  280. root.title("M3U Playlist Downloader")
  281.  
  282. # Frame for countries
  283. country_frame = ttk.Frame(root)
  284. country_frame.pack(padx=10, pady=10)
  285.  
  286. # Label for country dropdown list
  287. country_label = ttk.Label(country_frame, text="Countries:")
  288. country_label.grid(row=0, column=0, padx=5, pady=5)
  289.  
  290. # Dropdown list for countries
  291. country_combo = ttk.Combobox(country_frame, values=list(countries.keys()))
  292. country_combo.grid(row=0, column=1, padx=5, pady=5)
  293. country_combo.current(0)  # Set default value
  294.  
  295. # Button to save M3U file for countries
  296. save_country_button = tk.Button(country_frame, text="Save M3U", command=save_m3u)
  297. save_country_button.grid(row=0, column=2, padx=5, pady=5)
  298.  
  299. # Button to show M3U file for countries
  300. show_country_button = tk.Button(country_frame, text="Show M3U", command=show_m3u)
  301. show_country_button.grid(row=0, column=3, padx=5, pady=5)
  302.  
  303. # Text area to display M3U
  304. text = scrolledtext.ScrolledText(root, width=80, height=20)
  305. text.pack(padx=10, pady=10)
  306.  
  307. root.mainloop()
  308.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement