tamamdır ekledim, peki bu gizli grupta telif falan yenmiyo mu? Ben bi grup açarım facede, baya bi film falan doldururuz orayı
Üst Üye
Üyelik Tarihi: 18-02-2016
Yorum Sayısı: 151
Konu Sayısı: 6
Rep Puanı:
4
Anladım abi
Üst Üye
Üyelik Tarihi: 18-02-2016
Yorum Sayısı: 151
Konu Sayısı: 6
Rep Puanı:
4
Direk linki de kabul etmiyor
Ek Dosyalar
Ekran Görüntüleri
/mnt/expand/5a4dffa0-6be2-490d-bf8c-eb81d1ade4ec/user/0/org.qpython.qpy/files/bin/qpython-android5.sh "/storage/emulated/0/qpython/scripts/videoyükle.py" && exit
ripts/videoyükle.py" && exit <
Traceback (most recent call last):
File "/storage/emulated/0/qpython/scripts/videoyükle.py", line 6, in <module>
from requests_toolbelt import MultipartEncoder
ImportError: No module named requests_toolbelt
1|u0_a144@A7000-a:/ $
alldebrid linki kullanacağını tahmin etmeliydim
biliyosun ki alldebrid bazen kendi cihazımıza bile direkt olarak inmiyor, bunda da ip farklılıkları olduğundan kabul etmemiş olabilir. Ya teqara bi yükletemedik sana video
(30-06-2017, Saat: 14:36) Barbaros Nickli Kullanıcıdan Alıntı: /mnt/expand/5a4dffa0-6be2-490d-bf8c-eb81d1ade4ec/user/0/org.qpython.qpy/files/bin/qpython-android5.sh "/storage/emulated/0/qpython/scripts/videoyükle.py" && exit
ripts/videoyükle.py" && exit <
Traceback (most recent call last):
File "/storage/emulated/0/qpython/scripts/videoyükle.py", line 6, in <module>
from requests_toolbelt import MultipartEncoder
ImportError: No module named requests_toolbelt
1|u0_a144@A7000-a:/ $
baroş bir de şunu denesene
PHP Kod:
#qpy:console access_token = "" import platform import subprocess if platform . platform (). startswith ( "Linux" ): try: import requests except : arg = "pip install requests" os . system ( sys . executable + " " + sys . prefix + "/bin/" + arg ) os . execv ( sys . executable , [ 'python' ] + sys . argv ) try: from requests_toolbelt import MultipartEncoder except : arg = "pip install requests_toolbelt" os . system ( sys . executable + " " + sys . prefix + "/bin/" + arg ) os . execv ( sys . executable , [ 'python' ] + sys . argv ) else: try: import requests except : subprocess . call ([ "python" , "-m" , "pip" , "install" , "requests" ]) import requests try: from requests_toolbelt import MultipartEncoder except : subprocess . call ([ "python" , "-m" , "pip" , "install" , "requests_toolbelt" ]) from requests_toolbelt import MultipartEncoder if platform . platform (). startswith ( "Linux" ): import androidhelper droid = androidhelper . Android () video_url = droid . dialogGetInput ( 'Facebook Video Url' , 'Link girin:' , droid . getClipboard (). result ). result else: from Tkinter import * import ttk root = Tk () root . title ( "Link Girin" ) root . resizable ( width = FALSE , height = FALSE ) pgen = 500 pyuks = 100 ekrangen = root . winfo_screenwidth () x = ( ekrangen - pgen ) / 2 root . geometry ( "%dx%d+%d+%d" %( pgen , pyuks , x , 200 )) def clp ( event = None ): global video_url video_url = entry . get () root . destroy () entry = Entry ( root , width = 80 ) entry . pack ( pady = 15 ) ttk . Style (). configure ( "prk.TButton" , padding = 6 , relief = "flat" , background = "#EBE6E6" , foreground = "#347D2B" , font =( "DejaVuSans" , 11 , "bold" )) tara = ttk . Button ( root , text = "Tamam" , style = 'prk.TButton' , command = clp , width = 22 ) tara . pack () entry . insert ( 0 , root . clipboard_get ()) root . bind ( "<Return>" , clp ) mainloop () def put_video ( video_url , page_id , access_token , description , title ): video_file_name = title local_video_file = video_url path = "{0}/videos" . format ( page_id ) fb_url = "https://graph-video.facebook.com/{0}?access_token={1}" . format ( path , access_token ) print fb_url m = MultipartEncoder ( fields ={ 'description' : description , 'title' : title , 'comment' : 'postvideo' , 'file_url' : video_url } ) r = requests . post ( fb_url , headers ={ 'Content-Type' : m . content_type }, data = m ) if r . status_code == 200 : j_res = r . json () facebook_video_id = j_res . get ( 'id' ) print ( "facebook_video_id = {0}" . format ( facebook_video_id )) print ( "Yukleme tamamlandi, 1-2 dk sonra profilinize yansir." ) else: print ( "Facebook upload error: {0}" . format ( r . text )) print video_url page_id = "me" description = raw_input ( "Video Aciklamasi: " ) title = raw_input ( "Video Basligi: " ) put_video ( video_url , page_id , access_token , description , title )
/mnt/expand/5a4dffa0-6be2-490d-bf8c-eb81d1ade4ec/user/0/org.qpython.qpy/files/bin/qpython-android5.sh "/storage/emulated/0/qpython/scripts/yükle.py" && exit
0/qpython/scripts/yükle.py" && exit <
Traceback (most recent call last):
File "/storage/emulated/0/qpython/scripts/yükle.py", line 19, in <module>
os.system(sys.executable+" "+sys.prefix+"/bin/"+arg)
NameError: name 'os' is not defined
1|u0_a144@A7000-a:/ $
ya arkadaş os modülünü import etmeyi unutmulum aceleyle, sen de hiç yardımcı olmuyon insan bi "import os" yazamaz mı koda arkadaş
PHP Kod:
#qpy:console access_token = "" import platform import subprocess import os , sys if platform . platform (). startswith ( "Linux" ): try: import requests except : arg = "pip install requests" os . system ( sys . executable + " " + sys . prefix + "/bin/" + arg ) os . execv ( sys . executable , [ 'python' ] + sys . argv ) try: from requests_toolbelt import MultipartEncoder except : arg = "pip install requests_toolbelt" os . system ( sys . executable + " " + sys . prefix + "/bin/" + arg ) os . execv ( sys . executable , [ 'python' ] + sys . argv ) else: try: import requests except : subprocess . call ([ "python" , "-m" , "pip" , "install" , "requests" ]) import requests try: from requests_toolbelt import MultipartEncoder except : subprocess . call ([ "python" , "-m" , "pip" , "install" , "requests_toolbelt" ]) from requests_toolbelt import MultipartEncoder if platform . platform (). startswith ( "Linux" ): import androidhelper droid = androidhelper . Android () video_url = droid . dialogGetInput ( 'Facebook Video Url' , 'Link girin:' , droid . getClipboard (). result ). result else: from Tkinter import * import ttk root = Tk () root . title ( "Link Girin" ) root . resizable ( width = FALSE , height = FALSE ) pgen = 500 pyuks = 100 ekrangen = root . winfo_screenwidth () x = ( ekrangen - pgen ) / 2 root . geometry ( "%dx%d+%d+%d" %( pgen , pyuks , x , 200 )) def clp ( event = None ): global video_url video_url = entry . get () root . destroy () entry = Entry ( root , width = 80 ) entry . pack ( pady = 15 ) ttk . Style (). configure ( "prk.TButton" , padding = 6 , relief = "flat" , background = "#EBE6E6" , foreground = "#347D2B" , font =( "DejaVuSans" , 11 , "bold" )) tara = ttk . Button ( root , text = "Tamam" , style = 'prk.TButton' , command = clp , width = 22 ) tara . pack () entry . insert ( 0 , root . clipboard_get ()) root . bind ( "<Return>" , clp ) mainloop () def put_video ( video_url , page_id , access_token , description , title ): video_file_name = title local_video_file = video_url path = "{0}/videos" . format ( page_id ) fb_url = "https://graph-video.facebook.com/{0}?access_token={1}" . format ( path , access_token ) print fb_url m = MultipartEncoder ( fields ={ 'description' : description , 'title' : title , 'comment' : 'postvideo' , 'file_url' : video_url } ) r = requests . post ( fb_url , headers ={ 'Content-Type' : m . content_type }, data = m ) if r . status_code == 200 : j_res = r . json () facebook_video_id = j_res . get ( 'id' ) print ( "facebook_video_id = {0}" . format ( facebook_video_id )) print ( "Yukleme tamamlandi, 1-2 dk sonra profilinize yansir." ) else: print ( "Facebook upload error: {0}" . format ( r . text )) print video_url page_id = "me" description = raw_input ( "Video Aciklamasi: " ) title = raw_input ( "Video Basligi: " ) put_video ( video_url , page_id , access_token , description , title )
/mnt/expand/5a4dffa0-6be2-490d-bf8c-eb81d1ade4ec/user/0/org.qpython.qpy/files/bin/qpython-android5.sh "/storage/emulated/0/qpython/scripts/yük.py" && exit
0/qpython/scripts/yük.py" && exit <
Traceback (most recent call last):
File "/storage/emulated/0/qpython/scripts/yük.py", line 37, in <module>
droid = androidhelper.Android()
File "/mnt/expand/5a4dffa0-6be2-490d-bf8c-eb81d1ade4ec/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/androidhelper/sl4a.py", line 34, in __init__
self.conn = socket.create_connection(addr)
File "/mnt/expand/5a4dffa0-6be2-490d-bf8c-eb81d1ade4ec/user/0/org.qpython.qpy/files/lib/python27.zip/socket.py", line 575, in create_connection
socket.error: getsockaddrarg: bad family
1|u0_a144@A7000-a:/ $