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 os | |
| import socket | |
| import requests | |
| import time | |
| import random | |
| import socks | |
| import stem.process | |
| from stem import Signal | |
| from stem.control import Controller |
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 sqlite3 | |
| import csv | |
| import time | |
| import sys | |
| import logging | |
| class CSV_to_SQL: | |
| def write_to_database(self): | |
| logging.info("Устанавливаю соединение с базой данных...") | |
| start = time.time() |
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
| #!/bin/bash | |
| get_whois() { # directory, url as arguments | |
| if [[ "$2" =~ ^https?:\/\/.*$ ]]; | |
| then | |
| domain=$(echo $2 | awk -F[/:] '{print $4}') | |
| else | |
| domain=$2 | |
| fi | |
| domain=${domain/www./ } |
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 reverse_print(my_list): | |
| new_list = my_list | |
| values = [] | |
| while new_list['next'] is not None: | |
| values.append(new_list['value']) | |
| new_list = new_list['next'] | |
| values.append(new_list['value']) | |
| for value in reversed(values): | |
| print(value) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 socket | |
| import socks | |
| import urllib.request | |
| import stem.process | |
| from user_agent import generate_user_agent | |
| import time | |
| SOCKS_PORT = 9150 | |
| tor_process = stem.process.launch_tor_with_config( |
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 socket | |
| import socks | |
| import urllib2 | |
| import stem.process | |
| ipcheck_url = 'http://checkip.amazonaws.com/' | |
| SOCKS_PORT = 9150 | |
| tor_process = stem.process.launch_tor_with_config( | |
| config = { |
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 time | |
| import datetime | |
| import re | |
| import string | |
| import sqlite3 | |
| from numpy import array, median | |
| import vk | |
| session = vk.Session() |
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 urllib.request | |
| import time | |
| import datetime | |
| import re | |
| def req(url): | |
| u = urllib.request.urlopen(url) | |
| r = u.read() | |
| response = eval(r) | |
| return response['response'] |
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
| function removeDuplicates(arr) { | |
| oldLength = arr.length; | |
| arr = arr.filter(function(item, pos, self) { | |
| return self.indexOf(item) == pos; | |
| }); | |
| return oldLength - arr.length; | |
| } |
NewerOlder