Esempio n. 1
0
clearInterval(myVar);

function myTimer() {
  window.scrollTo(0, document.body.scrollHeight);
}

function myStopFunction() {
  clearInterval(myVar);
}
'''
rearrange_urls('raw_urls.txt', 'links.txt')
#get_fb_title('links.txt', 'results.txt', 'finished.txt', 'geckodriver.exe')
#download_fb('links.txt', 2)
#copy_to_remote(copied_file, remote_username, remote_pass, remote_hostname, remote_port, escaped_remote)

'''
remote_username = '******'
remote_pass = '******'
remote_hostname = '192.168.1.36'
escaped_remote = '/data/data/com.termux/files/home/storage/external-1/PahtamagyiGrade/'
remote_port = 8022
#copy_to_remote('*.pdf',
copy_to_remote('AshinTayzaniya-YamakaAhLinYaung-for-Pahtamagyigrade.pdf',
                remote_username, remote_pass, remote_hostname, remote_port, escaped_remote
                )
'''  
def get_json():
	playlist = 'Komyo Aung page (fb) မွ ဆရာႀကီးဦးၾကည္ သင္ႀကားပို႔ခ်ေသာ တရားေတာ္မ်ား'
	description_title = 'သစၥာဒီပက၀ိပႆနာအဖြဲ႕ခ်ဳပ္ တရားျပဌာန ဦးစီးပဓာနနာယက၊ အာဒိကမၼိက ကမၼဌာနစရိယ မူလဓမၼာစရိယ၊ ပရိယတၱိမာမက၊ ပဋိပတၱိ၀ိသာရဒ ပဋိပတၱိသာသာနာ့ဟိတရဓရ ဘြဲ႕ရ က်မ္းျပဳပုဂၢိဳလ္ ဆရာႀကီးဦးၾကည္ သင္ႀကားပို႔ခ်ေသာ တရားေတာ္မ်ား'
	source='\nsource from https://www.facebook.com/profile.php?id=100037549250042&lst=100007043114370%3A100037549250042%3A1569295868&sk=videos/'
	#get_json_files_in_same('title_results.txt', 'title_results.txt', 'raw_json_title.txt',playlist, description_title, source) #titles_links.txt description.txt raw_json_title.txt
Esempio n. 2
0
from crawler import (get_fb_title, rearrange_urls, download_fb, get_json_fb,
                     thread_upload_test, copy_to_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.38'
escaped_remote = '/data/data/com.termux/files/home/storage/external-1/youtube/PilotSayadawJeYaPandita/fb/'
remote_port = 8022
#copy_to_remote('*.pdf',
copy_to_remote('*.mp4', remote_username, remote_pass, remote_hostname,
               remote_port, escaped_remote)
'''
playlist = 'ပိုင္းေလာ့ဆရာေတာ္-Pilot Sayartaw'
description_title = 'ပိုင္းေလာ့ဆရာေတာ္-Pilot Sayartaw ေဟာၾကားေတာ္မူေသာ တရားေတာ္မ်ား'
source='\nsource from https://www.facebook.com/pg/pilotsayartaw/videos/'
get_json_fb('title.txt', 'edited_results.txt', 'raw_json_title.txt',playlist, description_title, source) #titles_links.txt description.txt raw_json_title.txt
'''

#get_html_mp4('get_url.txt', 'raw_titles_links.txt', 1)
#check_duplicate('raw_titles_links.txt') #titles_links.txt
#update_raw_titles_links('raw_titles_links.txt', 'titles_links.txt', 1)

#convert_myanmar_number('titles_links.txt', 'description.txt') # titles_links.txt description.txt
'''
playlist = 'ပိုင္းေလာ့ ဆရာေတာ္္ အရွင္ေဇယ်ပ႑ိတ  ေဟာႀကားေတာ္မူေသာတရားေတာ္မ်ား'
description_title = 'ပိုင္းေလာ့ ဆရာေတာ္္ အရွင္ေဇယ်ပ႑ိတ  ေဟာႀကားေတာ္မူေသာတရားေတာ္မ်ား'