This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import docx2txt | |
| input_loc = input("Your docx location: ") | |
| output_loc = input("Output location: ") | |
| text = docx2txt.process(input_loc.split('"')[1], output_loc.split('"')[1]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pandas as pd | |
| def country_info(country): | |
| df_country = pd.read_html("https://tradingeconomics.com/matrix")[0] | |
| info = df_country.loc[df_country["Country"] == country] | |
| country_check = (df_country[df_country["Country"] == country]).all(1).any() | |
| ## Use for creating country.txt (List for all available country) | |
| # with open("country.txt", "w") as f: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name = input("Filename: ") | |
| n = int(input("How many data: ")) | |
| print("\a") | |
| for i in range(n): | |
| print("Data Number-" + str(i+1)) | |
| first = str(input("First name: ")) | |
| last = str(input("Last name: ")) | |
| print("\a") | |
| with open(f"{name}", "a") as f: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from youtube_comment_scraper_python import * | |
| import pandas as pd | |
| link = input("Youtube links: ") | |
| saved = input("Output name: ") | |
| youtube.open(link) | |
| response = youtube.video_comments() | |
| data = response['body'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ################################################# | |
| ################### MODULE ###################### | |
| ################################################# | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText | |
| import smtplib | |
| ################################################# | |
| #################################### | |
| ########## INFORMATION ############# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LANGUAGES = { | |
| 'af': 'afrikaans', | |
| 'sq': 'albanian', | |
| 'am': 'amharic', | |
| 'ar': 'arabic', | |
| 'hy': 'armenian', | |
| 'az': 'azerbaijani', | |
| 'eu': 'basque', | |
| 'be': 'belarusian', | |
| 'bn': 'bengali', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // handhikayp | |
| /*<!--*/ | |
| (function () { | |
| var qss = '&cb=' + Math.floor(99999999999 * Math.random()); | |
| try { | |
| qss += '&ref=' + encodeURIComponent(document.referrer); | |
| } catch (e) {} | |
| try { | |
| qss += '&sc_r=' + encodeURIComponent(screen.width + 'x' + screen.height); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // handhikayp | |
| /*<!--*/ | |
| (function () { | |
| var qss = '&cb=' + Math.floor(99999999999 * Math.random()); | |
| try { | |
| qss += '&ref=' + encodeURIComponent(document.referrer); | |
| } catch (e) {} | |
| try { | |
| qss += '&sc_r=' + encodeURIComponent(screen.width + 'x' + screen.height); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def flip(text, arr): | |
| return sorted(arr) if text == 'R' else sorted(arr, reverse=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fetch = require("node-fetch"); | |
| fetch("https://type.fit/api/quotes") | |
| .then((response) => response.json()) | |
| .then((data) => console.log(data[Math.floor(Math.random() * 1000)])); |
NewerOlder