A little script I wrote to find links for voat

23    05 Mar 2016 04:27 by u/dolphonebubleine

Basically you just give it a list of websites and hit continue when you are ready to look at the next site.

program:

using System;
using System.IO;
using System.Diagnostics;
using System.Threading;
namespace Runner
{
    class Program
    {
        static void Main(string[] args)
        {
            Process cmd;
            StreamWriter inputWriter;
            string sitesPath = @"C:\Users\me\Desktop\save\runner.txt";
            string[] sites = File.ReadAllLines(sitesPath);
            ProcessStartInfo psi = new ProcessStartInfo("cmd.exe");
            psi.UseShellExecute = false;
            psi.CreateNoWindow = false;
            psi.RedirectStandardInput = true;
            cmd = new Process();
            cmd.StartInfo = psi;
            cmd.Start();
            inputWriter = cmd.StandardInput;
            inputWriter.WriteLine("cd \"C:\\Program Files (x86)\\Mozilla Firefox\\\"" + "\r\n");
            inputWriter.WriteLine("firefox.exe" + "\r\n");
            for (int i = 0; i < sites.Length; i++)
            {
                inputWriter.WriteLine(sites[i] + "\r\n");
                Thread.Sleep(100); // <----------------------------- set a breakpoint here
            }
            Console.ReadLine();
        }
    }
}

site list:

firefox -new-tab [http://www.venturebeat.com](http://www.venturebeat.com)
firefox -new-tab [http://www.recode.net](http://www.recode.net)
firefox -new-tab [https://hacked.com/](https://hacked.com/)
firefox -new-tab [http://theoatmeal.com/](http://theoatmeal.com/)
firefox -new-tab [http://nextbigfuture.com/](http://nextbigfuture.com/)
firefox -new-tab [http://www.hanselman.com/blog/](http://www.hanselman.com/blog/)
firefox -new-tab [http://techcrunch.com/](http://techcrunch.com/)
firefox -new-tab [http://www.nationalgeographic.com/](http://www.nationalgeographic.com/)
firefox -new-tab [http://rt.com/usa/](http://rt.com/usa/)
firefox -new-tab [https://twitter.com/numenta](https://twitter.com/numenta)
firefox -new-tab [http://www.treehugger.com](http://www.treehugger.com)
firefox -new-tab [http://www.winbeta.org/archive](http://www.winbeta.org/archive)
firefox -new-tab [http://www.sciencealert.com/](http://www.sciencealert.com/)
firefox -new-tab [http://hackaday.com/blog/](http://hackaday.com/blog/)
firefox -new-tab [http://www.programmableweb.com/](http://www.programmableweb.com/)
firefox -new-tab [http://www.endgadget.com/](http://www.endgadget.com/)
firefox -new-tab [http://www.extremetech.com/category/extreme](http://www.extremetech.com/category/extreme)
firefox -new-tab [http://www.bloomberg.com/technology](http://www.bloomberg.com/technology)
firefox -new-tab [http://www.tomshardware.com/articles/](http://www.tomshardware.com/articles/)
firefox -new-tab [http://www.scientificamerican.com](http://www.scientificamerican.com)
firefox -new-tab [http://www.popsci.com/](http://www.popsci.com/)
firefox -new-tab [https://www.google.com/?gws_rd=ssl#q=artificial+intelligence+news&tbs=qdr:d](https://www.google.com/?gws_rd=ssl#q=artificial+intelligence+news&tbs=qdr:d)
firefox -new-tab [https://www.google.com/?gws_rd=ssl#q=machine+learning+news&tbs=qdr:d](https://www.google.com/?gws_rd=ssl#q=machine+learning+news&tbs=qdr:d)

4 comments

3

Now filter out already posted links, then rank them according to some heuristic, then post the top few automatically. Yay, voatbot!

1

Or try http://storytide.com, a little site I wrote that automatically finds fresh, trending content.

0

That's pretty cool. Nice work!