Showing posts with label .NET40. Show all posts
Showing posts with label .NET40. Show all posts

Thursday, August 7, 2014

Getting Meta content by name using HTMLAgility



 Getting Meta content by name using HTMLAgility
ItemTitle = TrimString(document.DocumentNode.SelectSingleNode("//meta[@name='title']").Attributes["content"].Value);

Saturday, August 2, 2014

Really completed webbrowser_documentcompleted



Code explain better


string body = "";
private void thebrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
        {
            if (thebrowser.ReadyState != WebBrowserReadyState.Complete)
                return;
            if (e.Url.AbsolutePath != (sender as WebBrowser).Url.AbsolutePath)
                return;
            if (body == thebrowser.Document.Body.InnerHtml) return;
            body = thebrowser.Document.Body.InnerHtml;

           
        }

Sunday, July 6, 2014

BreakThrough Limit Maximum number Concureent connections


According  to this[
] question , I take it as my own personal note

Look at first answers
It is matter of ServicePoint. Which provides connection management for HTTP connections. The default maximum number of concurrent connections allowed by a ServicePoint object is 2. So if you need to increase it you can use ServicePointManager.DefaultConnectionLimit property. Just check the link in MSDN there you can see a sample. And set the value you need.

Solving:
 Just add this code anytime before you begin making the HTTP requests.
   System.Net.ServicePointManager.DefaultConnectionLimit = 1000; //or some other number > 4

Saturday, July 5, 2014

Cannot apply indexing with [] to an expression of type System.Collections.Generic.IEnumerable


Cannot apply indexing with [] to an expression of type System.Collections.Generic.IEnumerable
Error:
Cannot apply indexing with [] to an expression of type 'System.Collections.Generic.IEnumerable<ANY_TYPE>

Solution:
If used of IEnumerable SampleArray then you can access to elements like:
- SampleArray[index] WRONG
- SampleArray.ElementAt(index) RIGHT
Because the IEnumerable interface dose not support of [] for indexing :-))


taken from here http://blog.amastaneh.com/2011/06/cannot-apply-indexing-with-to.html for my own personal notification

Monday, June 30, 2014

Asin Grabber Extreme Edition ( AMAZON ASIN GRABBER ) C# .NET version

Scraping time

FB GROUP

https://www.facebook.com/groups/526739581526885/  

Mengikuti postingan yang terdahulu Asin Grabber kesana jika kalian nggak tahu cara gunainnya ... :)



Sekarang proses lebih cepat, download juga lebih cepat ( banyak yang blum di optimasikan tapi ini fork codenya artinya langkah awal untuk yang lebih baik )

Nah jika kalian nanya apa sih bedanya, asin grabber v3.1 yang biasa dengan EE ( extreme edition ) jawabannya gampang, yang biasa mengunakan LOOPING yang traditional, sedangkan methode EE mengunakan parallel programming.
Bahasa simplenya, yang biasa scrapping url satu satu. Sedangkan yang EE scrapping bisa 3 atau 4 dalam waktu yang bersamaanya.. :D


Download

v2.1(update)
http://www.mediafire.com/download/ndb4dygkz1mjca5/AsinGraber_EEv2.1.zip

bug fixes & improves :
  1. Error jika tidak ada asin
  2. Tidak mengunakan browser lagi, agar tidak terjadi crash saat scrapping dalam jumlah banyak
  3. jump link jika error

v2.2(update)


http://www.mediafire.com/download/u3x838wqe8qa2ab/AGE.Ev2.2.zip


bug fixes & improves :
  1. Perbaikan UI 
  2. Scrapping jadi tiap folder dengan datetime dan nama negara contoh amazon.fr
  3. Back to UN threaded mode. Still hard dealing with storing text file at same times. :)
v2.3(update)
http://www.mediafire.com/download/imuub057bjk1k00/AGE.Ev2.3.zip

bug fixes & improves
 - Minor  update
 : 
v2.4(update)
http://www.mediafire.com/download/m4gurut3qpqiv79/AGE.Ev2.4.zip


v2.5
http://www.mediafire.com/download/0grr6z8t79ei08i/AGE.Ev2.5.zip


+ adding title category for file text name.

v2.5.1

http://www.mediafire.com/file/9b1tkz2t14cph31/AGE.E_title_v2.5.1.rar
+ title beside asin


v2.5.2 

 + fixing
http://www.mediafire.com/file/278wrj3omokr8f7/AGE.E_v2.5.2.rar

v2.5.3
+ title
http://www.mediafire.com/file/nny0bsq4irsbc5o/AsinGrabber_Title_v2.5.3.rar

v2.5.4
+ fixing
+ useragent
http://www.mediafire.com/file/4u779kq0llksy52/AsinGrabber_Title_v2.5.4.rar

v2.5.5
+ delay
http://www.mediafire.com/file/n1j6livg47nvz07/AsinGrabber_Title_v2.5.5.rar

v2.5.6
+ fixing delay
http://www.mediafire.com/file/tvs6i4c96u9rfxo/AsinGrabber_Title_v2.5.6.rar


v3.0.1

+ fixing gak bisa scraping

Thanks for Irwan Kediri, for giving this project a donation

Version without TITLE only ASIN
https://www.mediafire.com/file/0lhakhv7qnnqno6/AGE.E_v3.0.1.zip/file
VERSION with TITLE
https://www.mediafire.com/file/c9muq1u8rnb38qb/AGE.E_title_v3.0.1.zip/file

v3.0.2

https://www.mediafire.com/file/y0h2hlb7ooxaswy/AGE.E+title+v3.0.2.zip/file 

+ fixing gak bisa scraping


v3.0.3

 https://www.mediafire.com/file/yfznjzwp4iksong/AGE.E+title+v3.0.3.7z/file

or

https://send.cm/g3kdax6gswuf 

or 

https://send.cm/s5e9cj91ecpn

 password = tulisanlain

+ fixing gak bisa scraping



Video HOW TO




You need  net 4.0