【解決方法】GETメソッドでページを取得できません

プログラミングQA


Pythonスクリプトを作成しました。サイトはgetリクエストを使用して、アクションからiptvデータを表示します。パラメータ付きのiptv-info.phpリクエストは接続オプションです。問題は、サイトの空のファイルページソースだけでiptvデータを取得できないことです。

fcccam - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

私のコードと以下…私が理解できなかったのは、アクションiptv-info.phpからの取得リクエストを起動した後、iptvデータが./iptvページに表示されるということです。データパラメータが正しくないと思われます。 input ボタン value=”Custom List Option” の値に対応する名前が表示されません

私が試したこと:

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()

解決策 1

https://frannysfarmacy.com/product/frannys-farmacy-gummies-500mg/

コメント

タイトルとURLをコピーしました