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
| <!doctype html> | |
| <html amp> | |
| <head> | |
| <meta charset="utf-8"> | |
| <script async src="https://cdn.ampproject.org/v0.js"></script> | |
| <script async custom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-form-0.1.js"></script> | |
| <script async custom-template="amp-mustache" src="https://cdn.ampproject.org/v0/amp-mustache-0.1.js"></script> | |
| <link rel="canonical" href="http://localhost"> | |
| <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> | |
| <style amp-custom> |
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
| <?php | |
| if (!empty($_POST)) { | |
| header("access-control-allow-credentials:true"); | |
| header("access-control-allow-headers:Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token"); | |
| header("access-control-allow-methods:POST, GET, OPTIONS"); | |
| header("access-control-allow-origin:".$_SERVER['HTTP_ORIGIN']); | |
| header("access-control-expose-headers:AMP-Access-Control-Allow-Source-Origin"); | |
| // change to represent your site's protocol, either http or https | |
| header("amp-access-control-allow-source-origin:https://".$_SERVER['HTTP_HOST']); | |
| header("Content-Type: application/json"); |
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
| <form action="https://searchwilderness.com/" method="get" target="_top"> | |
| <input name="s" placeholder="Search The Blog" required="" type="text"> | |
| <input type="submit" value="Search"> | |
| </form> |
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 praw | |
| import csv | |
| import datetime | |
| # Create an app: https://www.reddit.com/prefs/apps | |
| # Use http://localhost:8080 as redirect uri | |
| username = "" | |
| password = "" | |
| clientid = "" | |
| clientsecret = "" |
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 Walker = require('puppeteer-walker') | |
| var fs = require('fs') | |
| var walker = Walker() | |
| fs.writeFile('output.csv', 'URL, Title, H2\r\n', 'utf8', function (err) { | |
| console.log(`Header written`) | |
| }) | |
| walker.on('end', () => console.log('finished walking')) |
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 csv | |
| import os | |
| from sumy.parsers.html import HtmlParser | |
| from sumy.parsers.plaintext import PlaintextParser | |
| from sumy.nlp.tokenizers import Tokenizer | |
| from sumy.summarizers.lsa import LsaSummarizer as Lsa | |
| from sumy.summarizers.luhn import LuhnSummarizer as Luhn | |
| from sumy.summarizers.text_rank import TextRankSummarizer as TxtRank | |
| from sumy.summarizers.lex_rank import LexRankSummarizer as LexRank | |
| from sumy.summarizers.sum_basic import SumBasicSummarizer as SumBasic |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| from selenium import webdriver | |
| from selenium.webdriver.common.keys import Keys | |
| from selenium.webdriver.common.action_chains import ActionChains | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.support.ui import WebDriverWait | |
| from selenium.webdriver.support import expected_conditions as EC | |
| from selenium.webdriver.support.ui import Select | |
| import time | |
| import pandas as pd | |
| import os |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.