Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Net;
- using System.IO;
- namespace ROD_Deck_Builder
- {
- public class Pagedata
- {
- string pageData;
- public string PageData
- {
- get { return pageData; }
- set { pageData = value; }
- }
- public Pagedata()
- {
- }
- }
- public class GetPage
- {
- public static Pagedata GetPageData()
- {
- Pagedata pages = new Pagedata();
- WebRequest request = WebRequest.Create("http://reignofdragons.wikia.com/wiki/All");
- WebResponse response = request.GetResponse();
- Stream data = response.GetResponseStream();
- pages = String.Empty;
- using (StreamReader sr = new StreamReader(data))
- {
- pages = sr.ReadToEnd();
- }
- return pages;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement