Program.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using AVSORTER;
  6. using System.IO;
  7. namespace ConsoleApplication1
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. //NewMethod();
  14. //NewMethod1();
  15. Gets.HttpHelper help = new Gets.HttpHelper();
  16. Console.ReadKey();
  17. }
  18. private static void NewMethod1()
  19. {
  20. Gets.AVEntertainments ave = new Gets.AVEntertainments();
  21. var ms = ave.Query("CWP-50");
  22. //http://www.aventertainments.com/search_Products.aspx?languageID=1&dept_id=29&keyword=cwp-50&searchby=keyword
  23. Console.WriteLine(ms[0].ToString());
  24. var mm = ave.GetMovie(ms[0]);
  25. Console.WriteLine(mm.ToString());
  26. string ss = ave.GetScreen_shotURL(mm);
  27. System.Diagnostics.Process.Start(ss);
  28. Gets.HttpHelper help = new Gets.HttpHelper();
  29. var s = help.GetStream(ss, help.CookieContainer);
  30. System.IO.FileStream fs = new System.IO.FileStream("a.jpg", System.IO.FileMode.CreateNew);
  31. System.Net.WebClient wc = new System.Net.WebClient();
  32. wc.DownloadFile(ss, mm.AVCode + ".jpg");
  33. }
  34. private static void NewMethod()
  35. {
  36. Gets.HttpHelper help = new Gets.HttpHelper();
  37. var html = help.GetHtml("http://www.arzon.jp/index.php?action=adult_customer_agecheck&agecheck=1");
  38. Console.WriteLine("OK");
  39. html = help.GetHtml("http://www.arzon.jp/itemlist.html?t=&m=all&s=&q=ipz");
  40. //var html = help.GetHtml("http://www.arzon.jp/item_1290945.html");
  41. System.IO.File.WriteAllText("result.txt", html);
  42. System.Diagnostics.Process.Start("result.txt");
  43. Console.ReadKey();
  44. }
  45. }
  46. }