Hi Paul, I found an API that is able to provide the required information.
Effectively, you generate the following string and download the required file:
http://api.bfbcs.com/api/pc?players=[grrr] Paul,&fields=all
I used excel to generate the above string for each member in the clan. Downloaded all the strings using something like FDM (download contents in clipboard). Once all the stats are downloaded (couple of seconds), I will put all the files in a single directory. I then wrote some code to import all the files in the said directory into Excel (see below)
Regarding what stats are available, there is over 1600 different stats on each person using the above API. I just focused on the UAV ones. I am still thinking on how the best way is to mine and display the specific data but unfortunately I haven't done that yet.
I am also having some domestic negotiations to see if I can negotiate with my fiance if she could write me some proper code to eliminate some of the above steps...
Finally, here is the Excel VBA code, if you would like to import the stuff yourself. Kindly note that it ain't optimised or anything yet, but at least it is working:
Type FNArray
FileName As String
DirName As String
FullPath As String
Inputdata As String
End Type
Dim TheDir As String
Dim FileNArray() As FNArray
Dim NewFileCreated As String
Dim MainWorkbook As String
Dim InFile() As String
Sub ImportData()
ReDim FileNArray(1 To 1000)
Application.GetOpenFilename
ChDir (CurDir)
i = 1
FileNArray(i).FileName = Dir("*." & FileExt)
Do While FileNArray(i).FileName <> ""
FileNArray(i).DirName = CurDir
FileNArray(i).FullPath = FileNArray(i).DirName & "\" & FileNArray(i).FileName
i = i + 1
FileNArray(i).FileName = Dir
Loop
ReDim Preserve FileNArray(1 To i - 1)
For i = 1 To UBound(FileNArray)
Open FileNArray(i).FullPath For Input As #1
Line Input #1, FileNArray(i).Inputdata ' Read line of data.
Close #1
Range("A1").Offset(i - 1, 0).Value = FileNArray(i).Inputdata
Next
End Sub
Hi Paul, I found an API that is able to provide the required information.
Effectively, you generate the following string and download the required file:
[url]http://api.bfbcs.com/api/pc?players=[/url][grrr] Paul,&fields=all
I used excel to generate the above string for each member in the clan. Downloaded all the strings using something like FDM (download contents in clipboard). Once all the stats are downloaded (couple of seconds), I will put all the files in a single directory. I then wrote some code to import all the files in the said directory into Excel (see below)
Regarding what stats are available, there is over 1600 different stats on each person using the above API. I just focused on the UAV ones. I am still thinking on how the best way is to mine and display the specific data but unfortunately I haven't done that yet.
I am also having some domestic negotiations to see if I can negotiate with my fiance if she could write me some proper code to eliminate some of the above steps...
Finally, here is the Excel VBA code, if you would like to import the stuff yourself. Kindly note that it ain't optimised or anything yet, but at least it is working:
Type FNArray
FileName As String
DirName As String
FullPath As String
Inputdata As String
End Type
Dim TheDir As String
Dim FileNArray() As FNArray
Dim NewFileCreated As String
Dim MainWorkbook As String
Dim InFile() As String
Sub ImportData()
ReDim FileNArray(1 To 1000)
Application.GetOpenFilename
ChDir (CurDir)
i = 1
FileNArray(i).FileName = Dir("*." & FileExt)
Do While FileNArray(i).FileName <> ""
FileNArray(i).DirName = CurDir
FileNArray(i).FullPath = FileNArray(i).DirName & "\" & FileNArray(i).FileName
i = i + 1
FileNArray(i).FileName = Dir
Loop
ReDim Preserve FileNArray(1 To i - 1)
For i = 1 To UBound(FileNArray)
Open FileNArray(i).FullPath For Input As #1
Line Input #1, FileNArray(i).Inputdata ' Read line of data.
Close #1
Range("A1").Offset(i - 1, 0).Value = FileNArray(i).Inputdata
Next
End Sub