Skip to content

Instantly share code, notes, and snippets.

View south1907's full-sized avatar
🤣
WoRk For Fhăn

Heva south1907

🤣
WoRk For Fhăn
View GitHub Profile
import requests
import json
from bs4 import BeautifulSoup
import pandas as pd
import openpyxl
import xlsxwriter
def get_row_data(link_detail):
payload={}
headers = {
@south1907
south1907 / process_chat_song.py
Created June 20, 2020 14:34
Process main chat song messenger facebook by selenium
#!usr/bin/python3
# created by namph
from selenium.webdriver import Chrome, ChromeOptions
from selenium.webdriver.common.keys import Keys
import time
import json
import os
email = 'email1'
@south1907
south1907 / login_messenger.py
Created June 20, 2020 14:19
Login facebook messenger and chat
from selenium.webdriver import Chrome, ChromeOptions
from selenium.webdriver.common.keys import Keys
import time
email = 'youremail@gmail.com'
password = 'yourpassword'
browser = Chrome()
url = 'https://www.facebook.com/'
browser.get(url)
@south1907
south1907 / read_file_zingmp3_lyric.py
Created June 20, 2020 14:05
Read file lyric of zingmp3
#!usr/bin/python3
# created by namph
# link lyric file: https://zingmp3.vn/api/song/get-lyric?id=ZWAFE897&ctime=1592657865&sig=a79a3de95632ac37d116c01755f216e965784f2cf2ce13dac1ced62a3f08430438691484848bf685903c363a367eec12d1379c13f6d25288488b59b2fac1b091&api_key=38e8643fb0dc04e8d65b99994d3dafff
import json
import time
import os
with open('banhmikhong.json', 'r') as f:
song = json.loads(f.read())
@south1907
south1907 / get_ful_comment.py
Created May 12, 2020 17:36
Get all comment facebook plugin of all film (each category) phimmoi
import requests
import json
import time
from bs4 import BeautifulSoup
start_time = time.time()
headers = {
'cookie': 'fr=0shZ5eUbOjaYtgLs0..BeuWpJ...1.0.BeuWpJ.'
}
@south1907
south1907 / get_comment.py
Last active May 12, 2020 17:35
Get comment facebook plugin of one film in Phimmoi
import requests
import json
import time
start_time = time.time()
headers = {
'cookie': 'fr=0shZ5eUbOjaYtgLs0..BeuWpJ...1.0.BeuWpJ.'
}
limit = 20