It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
Imports System.Net
Imports System.IO
Public Class Form1
Private Sub btnStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStart.Click
' loop through faucet list
Dim faucetUrls() As String = Split(txtFaucetList.Text, vbCrLf)
For Each url As String In faucetUrls
' get faucet source code
Dim pageHtml As String = web.web("get", url)
' solve captcha
'get special name of btc address checkbox
Dim addInputNameEndPos As Integer = pageHtml.IndexOf("class=""form-control"" value="""" placeholder=""Your Address"" style=""width: 468px; border-radius: 3px; font-size: 12px;"">")
Dim addInputNameStartPos As Integer = addInputNameEndPos - 27
If addInputNameEndPos = -1 Then
addInputNameEndPos = pageHtml.IndexOf("class=""form-control"" value=""""")
End If
' check agian
If addInputNameStartPos = -1 Then
addInputNameStartPos = pageHtml.IndexOf("class=""form-control"" type=""text"" value="""" placeholder=""Your address"" name=""")
End If
Dim addInputName As String = pageHtml.Substring(addInputNameStartPos, addInputNameEndPos - addInputNameStartPos)
If pageHtml.IndexOf(" 0 Then
' send web request/response
Dim address As String = txtAdd.Text
Dim resultHtml As String = web.web("post", url, "address=" & address & "&honeypot=checked&" & addInputName & "=" & address)
End If
Next
End Sub
End Class
Imports System
Imports System.Net
Imports System.IO
Imports System.Text
Module web
Public Function web(ByVal mode As String, ByVal url As String, Optional ByVal data As String = Nothing)
If mode = "get" Then
' create new webrequest object
Dim request As WebRequest = WebRequest.Create(url)
Dim response As WebResponse = request.GetResponse()
Dim sr As StreamReader = New StreamReader(response.GetResponseStream()) ' create streamreader
' no data to enter
Return sr.ReadToEnd()
ElseIf mode = "post" Then
'ceate webrequest object
Dim request As WebRequest = WebRequest.Create(url)
' add post data to request
' set request property to post
request.Method = "POST"
' convert data to byte array
Dim byteArray() As Byte = Encoding.UTF8.GetBytes(data)
' set MIME
request.ContentType = "application/x-www-form-urlencoded"
request.ContentLength = byteArray.Length
'get request stream
Dim datastream As Stream = request.GetRequestStream()
' write data to stream
datastream.Write(byteArray, 0, byteArray.Length)
' close data stream
datastream.Close()
' now get response
Dim response As WebResponse = request.GetResponse()
' get stream cotaining response from server
datastream = response.GetResponseStream()
' return text
Dim reader As New StreamReader(datastream)
Return reader.ReadToEnd()
Else
Return False
End If
End Function
End Module