Giter Club home page Giter Club logo

vaas's Introduction

VaaS

(Vesper as a service)

Demo: http://sonicmax.github.io/VaaS

Sample response:

{ "post": "fhuuump" }

hey i wanna use this thing!

	1) Download this repo
	2 a) make free Heroku account
	
		b) create a new app, download Heroku Toolbelt and 
				install the Heroku Redis app
				
		c) follow their instructions and copy the contents of this 
				repo into the new one you just created. don't replace any files.
	
	3) go to settings page for your app in Heroku Dashboard and create these Config Variables: 
	
			USERNAME - ETI username
			PASSWORD - ETI password
			USER_ID - ETI user ID
			TOKEN - used to restrict access to certain parts of the API
			(REDIS_URL should already be there if you remembered to install the Heroku Redis app)
		
			(don't give these out to people you don't trust)
	
	4) compile sample text of sentences separated by linebreaks, 
			and upload to pastebin (bear with me here). keep the raw url handy...
	
	5) visit this URL in your browswer of choice: 
			https://myappname.herokuapp.com/pastebin?token=TOKEN&url=PASTEBIN_RAW_URL
			
			responds with:
					{ "quotes added": (boolean true/false) }
	
	7) visit https://myappname.herokuapp.com/ to see some quick output
	
	8) visit https://myappname.herokuapp.com/testbot to post in a random LUE topic
	
	9) have fun

vaas's People

Contributors

sonicmax avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

vaas's Issues

add topic scraper to api

it's not really feasible to run this as a script because of CORS restrictions (ie can't fetch archives.endoftheinter.net from boards.endoftheinter.net, can't use Location.assign() method to redirect user). cors-anywhere won't work for this as it strips all cookies - for good reason. a chrome extension would allow us to bypass CORS restrictions but it's a lot of extra boilerplate code to write (considering that i've already written majority of code required to do this). it would probably be easier to do this via the app & pass the scraped data directly to database

parameters should be something like

  • message: scrapes individual message (for testing, i guess)
  • topic: will scrape posts from individual topic. we can handle user filtering/etc internally
  • q: will search LUE for query and scrape results for topics by user, and then scrape posts

username regex will have to be hardcoded depending on which server we run the code on. maybe in future we can add an api to specify which users to scrape

automated posting

  • Get the login tokens - f0c2fd7
  • find some html parsing library? not sure what the deal is with node
  • scrape http://boards.endoftheinter.net/topics/LUE for topics and pick a random one to post in
  • get random topic, parse hidden token from quickpost area, make post request to async-post.php
  • subscribe to topic updates - f279ea1
  • reply to quoted messages
  • keep track of livelinks timeouts and move to a different topic if there have been no posts for x amount of time

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.