Jump to content

Blake

Members
  • Posts

    1385
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Blake

  1. Got the agility pack installed and working correctly (I think) Posting a couple thoughts/notes before I leave for an hour or two (haven't tested them yet) - When using HTML agility pack, do I have to have a .htm file, or can I search through a string with it? If not, will I have to get the html, save it as a .htm file, then load the file and search it with the agility pack? Will this work alright? - http://stackoverflow.com/questions/3231841/getting-meta-tag-attribute-with-html-agility-pack-using-xpath
  2. This is what I have to get the html - it works now, I tested by displaying it in a textbox. string urlfinal = "http://www.google.com"; WebClient client = new WebClient(); string answer = client.DownloadString(urlfinal); This works fine with google.com, but when I try the page I want - http://www.walmart.com/ip/10311410 - it gives this error... any idea why/how to fix it? [hide][/hide] I've never done regexes, so I guess it's not a problem to not use them. I've downloaded the HTML agility pack, but I don't really know how to install/use it, and then the code to actually make it work. After I can get the parsing done, I think it will be simple to set up a couple loops and save it to a file... any tips?
  3. Thanks for the tips :) So far, I wrote this quickly as a web page, but when it runs, it returns nothing. Just trying to get the stream (HTML of a website) to show up on a webpage, so that I know it fetches it correctly. string urlfinal = "http://www.google.com"; WebRequest request = WebRequest.Create(urlfinal); StreamReader stream = new StreamReader(request.GetResponse().GetResponseStream()); StringBuilder builder = new StringBuilder(); stream.Close(); string answer = builder.ToString(); Label ans = new Label(); ans.Text = answer; addhere.Controls.Add(ans); After I get the stream to work, writing a loop to change the value of the number at the end of the url, parsing the stream to get the values I want, and saving them to a file shouldn't be that hard (I hope). I'd like to have this done by tomorrow night if I can!
  4. I need to write a script to grab a bunch of data off of Walmart. I need to look at a bunch of different products, and get infomration about them, and save them to a text file. The information I want is stored in <meta> tags. This is how I plan to do it... Start with a URL like http://www.walmart.com/ip/10311410 Save the HTML source for <meta Search the HTML source for <meta, save the values I want Increment the number in the url above In the end, I'd like a file with values like this - Cheerios | 3.00 | Kellogs | other data I'm not really sure where to start on this. I'd like to do this in .NET, C#, in Visual studio 2012. Any tips on where to start or what to do?
  5. Thanks Kaida :) I just made it even better too, got 90 RC for pop, finally!!! Also, I got stuck in a barrell in the back of the bar :P
  6. Alright, lets get some text in this blog instead of just all picture updates :) I'm still at runespan, wasting using all of my time to try to unlock POP. I have some level up pics, that I'll put in hide tags, because they're boring. Anyways, I got 89 last night, but missed the picture due to playing Bloons TD5 on my ipad :P Other than that, I've been doing most of my daily challenges, to get up my lower skills. After I get 90 RC (maybe tonight, hopefully tomorrow) I can start training and doing fun stuff some more. I'd like to try out the new combat with slayer. Another thing I definitely need to do is quest some more - falling a fair bit behind on that. Most of these levels are from daily challenges, if not all of them. Only good rewards were a few raw rocktails to save for later. First level here is doing the daily challenge at the workshop. Never been there before, pretty nice and easy, i'll have to go back :) [hide=55/56 Smithing] [/hide] Tears - next week, hopefully I can get it to go to crafting. [hide=54 Con] [/hide] Turned in two challenges, got two different levels. [hide=61/62 Thieving, 61 Herblore] [/hide] In RL news, I just got funding for a new project at work. They are letting me use $250,000 (Holy [bleep] :shock: ) to build a website for them, with new features from the old one. The contractor company quoted $400,000 to make all of the changes that I'll make. Hopefully the first version will be live in a couple months, then I'll post a link here. It will be very basic and bare then, with bigger updates happening later. Pretty excited to be doing this myself, feel very accomplished to be doing this as a software engineer at 19 years old :D Hope everyone had a great new years, mine was pretty boring :P Although, did play a very fun game, Cards Against Humanity. Never had a card game knock me over with laughter or "did that really just happen?"
  7. Thanks! I'm going to get 99 magic this month. It looks like my blog has (at least temporarily) the third most views here. Sorry Aussie :P Absolutely amazing. I still can't understand what makes this blog so popular :D The views vs posts is crazy for your blog vs all of theirs too. If people like looking at DIY blogs so much, they might as well post once in a while :P
  8. Awesome captain, haven't even seen a 10k chimes one yet, and I'm already in the scythe...
  9. Blake

    Today...

    I'd like a group too, anyone on 360?
  10. In the chat yesterday, he said 2k (and wasn't happy about it :P)
  11. I hate this so much, that I'll use my phones smaller screen to browse instead of my iPad...
  12. You could also just go to 81/82/83/84 and use stews/ales to save money. Up to that point, just do the best gp/xp potion.
  13. I did it on the last double drop weekend, which I think was this month, and I just immediately shot her with the dart, no damage before.
  14. After doing that random I was talking about earlier, I've had 2 more... wish I'd figured it out earlier!
  15. You were right :( thanks for the heads up though
  16. Blake

    Today...

    I have monthly contacts, that you can sleep in. I usually only take them out every couple of weeks, which I know is bad :P my doctor said at least every other night, even though you can sleep in them.
  17. I've only ever had 1 random, and it was the very first day...
  18. Blake

    Today...

    Yeah, this. I usually wear some snowboarding thermal pants (skin-tight, insulating stuff), with just jeans and boots, and then a shirt, with my wool peacoat over that. It has a sweater built into it. Also, a scarf and a hat. It's not really the temperature that gets you really cold, it's the wind. My outfit keeps most of the heat in, the problem is covering up all your skin so you don't get hit by the -30 wind chills.
  19. Blake

    Today...

    Liberal Arts. I'll possibly go there if I don't get accepted to UNC Chapel Hill. Cool, congrats on getting in. If you do end up going there, and have any questions about anything, let me know.
  20. Blake

    Today...

    Are you going there? That's where I go/live Edit: which college?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.