Click here to Skip to main content
15,746,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I made a python script the site uses a get request to display iptv data from action iptv-info.php request with parameters is a connection option the problem is that I can't get the iptv data just an empty file page source of site:

my code and the following ... one thing that I did not understand is that after launching the request get from action iptv-info.php the iptv data appears on the ./iptv page I guess the data parameters are not correct there is also input button I do not see name that corresponds to the value of value="Custom List Option"

What I have tried:

import requests 
s = requests.Session()
LINKFILE= '/tmp/link'
URL = ""

def get_clipmails():
    Post_Hdr={'User-Agent':'Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/81.0',
              'Accept-Encoding':'gzip, deflate, br'}
    post_data='login=salem&pass=123456&pass_conf=123456& Register Account ''',headers=Post_Hdr,data=post_data,verify=False,allow_redirects=True).text
    post_data2='login='+NAME_TARGET+'&pass='+RND_PASS+'&submit=Login In''',headers=Post_Hdr,data=post_data2,verify=False,allow_redirects=True).text
    params='bid=5&plan=11&conx=1&category_9=Custom List Option&myfsrc1=Search in channels categories..&myfsrc2=Search in movies categories..&myfsrc3=Search in series categories..&mych[]=submit=submit'
    with open(LINKFILE, "a") as f: f.write(html_data)


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900