This file contains 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
require 'active_support/time' | |
require 'active_support/core_ext' | |
output_txt = "" | |
start_of_month = Time.now.beginning_of_month.to_date.strftime("%Y-%m-%d") | |
end_of_month = Time.now.end_of_month.to_date.strftime("%Y-%m-%d") | |
date_range = (start_of_month..end_of_month) | |
date_range.each do |d| |
This file contains 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
javascript: (function () { | |
const title = document.title; | |
const textArea = document.createElement("textarea"); | |
textArea.setAttribute("id", "copyTarget"); | |
textArea.value = title; | |
document.body.appendChild(textArea); | |
const copyText = document.querySelector("#copyTarget"); | |
copyText.select(); | |
document.execCommand("copy"); |
This file contains 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 requests | |
from bs4 import BeautifulSoup | |
import json | |
import datetime | |
from itertools import groupby | |
def get_soup(url): | |
html = requests.get(url) | |
soup = BeautifulSoup(html.content, "html.parser") | |
return soup |
OlderNewer