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
#!/bin/bash | |
# viewing environment variables | |
echo "The value of the home variable is: " | |
echo $HOME | |
# issue a command | |
echo "The output of the pwd command is: " | |
pwd |
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
#' Extract link texts and urls from a web page | |
#' @param url character an url | |
#' @return a data frame of link text and urls | |
#' @examples | |
#' \dontrun{ | |
#' scraplinks("http://localhost/") | |
#' glinks <- scraplinks("http://google.com/") | |
#' } | |
#' @export | |
scraplinks <- function(url){ |
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
from telebot import types | |
from telebot.apihelper import ApiException | |
import config | |
import telebot | |
import requests | |
from bs4 import BeautifulSoup | |
from googletrans import Translator | |
bot = telebot.TeleBot(config.TOKEN, parse_mode="html") |