Пример #1
0
running_from_path = os.path.abspath(pathname) + '/'

from crawler import (get_fb_title, rearrange_urls, download_fb,
                    get_json_fb, thread_upload_test, copy_to_remote, thread_upload_remote)

#fb
#rearrange_urls('raw_urls.txt', 'links.txt')
#get_fb_title('links.txt', 'results.txt', 'finished.txt', 'geckodriver.exe')
#download_fb('du.txt', 3)
#copy_to_remote(copied_file, remote_username, remote_pass, remote_hostname, remote_port, escaped_remote)



remote_username = '******'
remote_pass = '******'
remote_hostname = '192.168.0.107'
escaped_remote = '/storage/34A5-151A/youtube/3/'
remote_port = 8022
#copy_to_remote('*.pdf',
# thread_upload_remote(copied_file, running_from_path, remote_username, remote_pass, remote_hostname, remote_port, escaped_remote, threads):

#for i in range(0, 10):
#test = '[0-9][0-5][0-9][0-9].mp4'
test = '*.mp4'
thread_upload_remote('%s' % (test, ), running_from_path,
                remote_username, remote_pass, remote_hostname, remote_port, escaped_remote,
                3
                )


Пример #2
0
file = sys.argv[0]

pathname = os.path.dirname(file)
#print(pathname)
#print('running from %s' % os.path.abspath(pathname))
#print(file)

running_from_path = os.path.abspath(pathname) + '/'
#print('a', running_from_path)

from crawler import (get_fb_title, rearrange_urls, download_fb, get_json_fb,
                     thread_upload_test, copy_to_remote, thread_upload_remote)

#fb
#rearrange_urls('raw_urls.txt', 'links.txt')
#get_fb_title('links.txt', 'results.txt', 'finished.txt', 'geckodriver.exe')
#download_fb('du.txt', 3)
#copy_to_remote(copied_file, remote_username, remote_pass, remote_hostname, remote_port, escaped_remote)

remote_username = '******'
remote_pass = '******'
remote_hostname = '192.168.1.39'
escaped_remote = '/storage/1527-15E5/youtube/DhammaDara-Dr-Kumara-mp3-myanmar/'
remote_port = 8022
#copy_to_remote('*.pdf',
#copy_to_remote('*.mp4',
#remote_username, remote_pass, remote_hostname, remote_port, escaped_remote
#)
thread_upload_remote('*.mp4', running_from_path, remote_username, remote_pass,
                     remote_hostname, remote_port, escaped_remote, 3)
Пример #3
0
#convert_myanmar_number('titles_links.txt', 'description.txt') # titles_links.txt description.txt
'''
playlist = 'ေအာင္စႀကၤာဆရာေတာ္ အရွင္စႏၵသီရိ ဗဟုဇနဟိတဓရ ေဟာႀကားေတာ္မူေသာတရားေတာ္မ်ား'
description_title = 'ေအာင္စႀကၤာဆရာေတာ္ အရွင္စႏၵသီရိ ဗဟုဇနဟိတဓရ ေအာင္စႀကၤာမိုးကုတ္ဝိပႆနာေက်ာင္းတိုက္ အမွတ္(၁)၊ ျမင္ေတာ္သာလမ္၊ (၇) ရပ္ကြက္၊ သာေကတၿမိဳ႕နယ္ ရန္ကုန္တိုင္းေဒသႀကီး ေဟာႀကားေတာ္မူေသာတရားေတာ္မ်ား'
source='\nsource from http://dhammadownload.com/' 
#get_json('raw_titles_links.txt', 'description.txt', 'raw_json_title.txt',playlist, description_title, source) #titles_links.txt description.txt raw_json_title.txt
get_json_files_in_same('titles_links.txt', 'titles_links.txt', 'raw_json_title.txt',playlist, description_title, source) #titles_links.txt description.txt raw_json_title.txt
'''
#thread_download('raw_titles_links.txt', 3)
#thread_upload_test('raw_json_title.txt')
#thread_upload_test_title('raw_json_title.txt')
#thread_upload('raw_json_title.txt', 1)

#thread_convert_mp3_to_mp4(1)

remote_username = '******'
remote_pass = '******'
remote_hostname = '192.168.1.39'
escaped_remote = '/storage/1527-15E5/youtube/AshinSandaThiri/'
remote_port = 8022
#copy_to_remote('*.pdf',
# thread_upload_remote(copied_file, running_from_path, remote_username, remote_pass, remote_hostname, remote_port, escaped_remote, threads):
thread_upload_remote('raw_json_title.txt', running_from_path, remote_username,
                     remote_pass, remote_hostname, remote_port, escaped_remote,
                     2)

#thread_upload_remote(, 2)

#thread_convert_mp3_to_mp4_with_text('convert.txt', 2)
Пример #4
0
        'titles_links.txt', 'titles_links.txt', 'raw_json_title.txt', playlist,
        description_title,
        source)  #titles_links.txt description.txt raw_json_title.txt
    #get_json('raw_titles_links.txt', 'description.txt', 'raw_json_title.txt',playlist, description_title, source) #titles_links.txt description.txt raw_json_title.txt


#get_json('raw_titles_links.txt', 'description.txt', 'raw_json_title.txt',playlist, description_title, source) #titles_links.txt description.txt raw_json_title.txt

#get_json_new()
#thread_download('raw_titles_links.txt', 3)
#thread_upload_test('raw_json_title.txt')
thread_upload_test_title('raw_json_title.txt')
#thread_upload('raw_json_title.txt', 1)

#thread_convert_mp3_to_mp4(1)
'''
remote_username = '******'
remote_pass = '******'
remote_hostname = '192.168.1.39'
escaped_remote = '/storage/1527-15E5/youtube/AshinSandaThiri/'
remote_port = 8022
#copy_to_remote('*.pdf',
# thread_upload_remote(copied_file, running_from_path, remote_username, remote_pass, remote_hostname, remote_port, escaped_remote, threads):
thread_upload_remote('raw_json_title.txt', running_from_path,
                remote_username, remote_pass, remote_hostname, remote_port, escaped_remote,
                2
                )
'''
#thread_upload_remote(, 2)

#thread_convert_mp3_to_mp4_with_text('convert.txt', 2)
Пример #5
0
file = sys.argv[0]

pathname = os.path.dirname(file)
#print(pathname)
#print('running from %s' % os.path.abspath(pathname))
#print(file)

running_from_path = os.path.abspath(pathname) + '/'

from crawler import (get_fb_title, rearrange_urls, download_fb, get_json_fb,
                     thread_upload_test, copy_to_remote, thread_upload_remote)

#fb
#rearrange_urls('raw_urls.txt', 'links.txt')
#get_fb_title('links.txt', 'results.txt', 'finished.txt', 'geckodriver.exe')
#download_fb('du.txt', 3)
#copy_to_remote(copied_file, remote_username, remote_pass, remote_hostname, remote_port, escaped_remote)

remote_username = '******'
remote_pass = '******'
remote_hostname = '192.168.1.123'
escaped_remote = '.'
remote_port = 22
#copy_to_remote('*.pdf',
# thread_upload_remote(copied_file, running_from_path, remote_username, remote_pass, remote_hostname, remote_port, escaped_remote, threads):

for i in range(0, 10):
    thread_upload_remote('*.mp4', '/home/user/mahasi/paauk-sayadaw/',
                         remote_username, remote_pass, remote_hostname,
                         remote_port, escaped_remote, 5)