mgoodings / language-sqf

Syntax highlighting and completions for Sqf files in Atom
6 stars 0 forks source link

Updated the scripting commands to latest #1

Closed CorruptedHeart closed 9 years ago

CorruptedHeart commented 9 years ago

All the latest Arma 3 scripting commands as scrapped from https://community.bistudio.com/wiki/Category:Scripting_Commands_Arma_3

There are a few changes in the order due to it being in correct alphabetical order.

Python script used to scrap

import urllib.request
from bs4 import BeautifulSoup

url = "https://community.bistudio.com/wiki/Category:Scripting_Commands_Arma_3"
file = "a3_methods.txt"
# BIS functions
#url = "https://community.bistudio.com/wiki/Category:Arma_3:_Functions"
#file = "a3_functions.txt"

response = urllib.request.urlopen(url)

html = response.read()

response.close()

content = BeautifulSoup(html)

links = content.find(id="mw-pages").findAll("a")
outputFile = open(file, 'w')
for link in links:
    outputFile.write(link.string.replace(' ', '_') + "|")

outputFile.close()
mgoodings commented 9 years ago

Thanks for posting the scraper as well :)