Skip to content

Instantly share code, notes, and snippets.

View StevenMcD's full-sized avatar

Steven McDonald StevenMcD

View GitHub Profile
@StevenMcD
StevenMcD / Table Results scrape - Powershell.ps
Created January 14, 2011 14:57
scrape table results from page
cls
$comics = @()
foreach($number in 1..25){
   $page = (new-object System.Net.Webclient).DownloadString("http://www.awx.co.za/e107_plugins/shop/show_cat.php?lettersort=B&catpath=64/Comics&page=$number")
   $startIndex = $page.IndexOf("main_section")
   $startIndex = $page.IndexOf("main_section",$startIndex + 20)
public static List<string> GetColumnHeadings()
{
List<string> ColumnHeadings = new List<string>();
StreamReader rawFile = new StreamReader(@"filePath");
string stringFile = rawFile.ReadToEnd();
////
//// Split the rows into an array
////
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Mail;
using System.Net;
namespace ConsoleApplication2
{
class Program