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 telethon import TelegramClient, events, sync | |
| from telethon.tl.types import DocumentAttributeVideo | |
| api_id = yourAPIIDInteger | |
| api_hash = yourAPIhashString | |
| client = TelegramClient('session_name', api_id, api_hash) | |
| client.start() | |
| ids=[] | |
| firstnames=[] | |
| lastnames=[] |
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
| install.packages("devtools") | |
| library(devtools) | |
| install_github("ropensci/RSelenium") | |
| library(RSelenium) | |
| psPath <- "S:/Path to PhantomJS folder/phantomjs-2.1.1-windows/bin/phantomjs.exe" | |
| pJS <- phantom(pjs_cmd = psPath) | |
| remDr <- remoteDriver(browserName = "phantomjs") | |
| remDr$open() | |
| loginURL <- 'https://www.facebook.com/login.php' | |
| remDr$navigate(loginURL) |
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
| #!/usr/bin/python3 | |
| # -*- coding: utf-8 -*- | |
| from selenium import webdriver | |
| from selenium.webdriver import DesiredCapabilities | |
| from selenium.webdriver.common.keys import Keys | |
| from urllib import parse | |
| import re | |
| from time import sleep | |
| from datetime import datetime |
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
| library(RSelenium) | |
| psPath <- | |
| "C:/*/phantomjs.exe" | |
| pJS <- phantom(pjs_cmd = psPath) | |
| remDr <- remoteDriver(browserName = "phantomjs") | |
| remDr$open() | |
| # For more details of the initial configuration and | |
| # some commands used below see | |
| # https://gist.github.com/Nachtjagdgeschwader/e0775141c2171f769b8939006ba9624b | |
| URLs <- |
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
| # First, you need to download PhantomJS headless WebKit from here http://phantomjs.org/download.html | |
| # and extract it to a desired folder | |
| install.packages("RSelenium") | |
| library(RSelenium) | |
| # installing and running the RSelenium package which we will use for driving | |
| # the PhantomJS WebKit | |
| psPath <- | |
| "C:/*/phantomjs-2.1.1-windows/bin/phantomjs.exe" | |
| # provide the full path to phantomjs.exe on your harddrive | |
| pJS <- phantom(pjs_cmd = psPath) |