Click here to Skip to main content
15,881,715 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:

https://pastebin.com/UuAV9KYP

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 = "https://cp.fcccam.com/userpanel/iptv-info.php"

def get_clipmails():
    Post_Hdr={'User-Agent':'Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/81.0',
              'Accept':'*/*',
              'Accept-Language':'fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3',
              'Connection':'keep-alive',
              'Content-Type':'application/x-www-form-urlencoded',
              'Host':'cp.fcccam.com',
              'Referer':'https://cp.fcccam.com/index.php',
              'Accept-Encoding':'gzip, deflate, br'}
    
    post_data='login=salem&pass=123456&pass_conf=123456&email=012@gmail.com&submit= Register Account '
    post_account=s.post('https://cp.fcccam.com/index.php?action=register',headers=Post_Hdr,data=post_data,verify=False,allow_redirects=True).text
    post_data2='login='+NAME_TARGET+'&pass='+RND_PASS+'&submit=Login In'
    post_account=s.post('https://cp.fcccam.com/index.php?action=login',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'
    html_data=s.get(URL,headers=Post_Hdr,data=params,verify=False,allow_redirects=True).text
    with open(LINKFILE, "a") as f: f.write(html_data)


get_clipmails()
Posted

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