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
var request = require('request'); | |
var cheerio = require('cheerio'); | |
var customHeaderRequest = request.defaults({ | |
headers: { 'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0" } | |
}) | |
async function doRequest(url) { | |
return new Promise(function(resolve, reject) { | |
customHeaderRequest(url, function(error, 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
#!/usr/bin/python | |
import os | |
import sys | |
import csv | |
import datetime | |
import time | |
import twitter | |
def test(): |
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
@echo off | |
set /p UserPort= What port to bind to? | |
%windir%/explorer.exe http://localhost:%UserPort% | |
TITLE [%UserPort%] PHP Built-in Webserver | |
rem check if arg is file or dir | |
if exist "%~1\" ( | |
rem Path to php file, or it's in PATH | |
php -S localhost:%UserPort% -t "%~1" | |
) else ( | |
rem Path to php file, or it's in PATH |
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
##The MIT License (MIT) | |
## | |
##Copyright (c) 2016 GigaToni | |
## | |
##Permission is hereby granted, free of charge, to any person obtaining a copy | |
##of this software and associated documentation files (the "Software"), to deal | |
##in the Software without restriction, including without limitation the rights | |
##to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
##copies of the Software, and to permit persons to whom the Software is | |
##furnished to do so, subject to the following conditions: |
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
##The MIT License (MIT) | |
## | |
##Copyright (c) 2016 GigaToni | |
## | |
##Permission is hereby granted, free of charge, to any person obtaining a copy | |
##of this software and associated documentation files (the "Software"), to deal | |
##in the Software without restriction, including without limitation the rights | |
##to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
##copies of the Software, and to permit persons to whom the Software is | |
##furnished to do so, subject to the following conditions: |