{"id":15134753,"url":"https://github.com/bilka2/wiki-scripts","last_synced_at":"2025-10-08T20:35:45.641Z","repository":{"id":50499762,"uuid":"93950535","full_name":"Bilka2/Wiki-scripts","owner":"Bilka2","description":"Scripts used on the official factorio wiki","archived":false,"fork":false,"pushed_at":"2025-08-29T09:46:59.000Z","size":46103,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-29T13:37:56.863Z","etag":null,"topics":["factorio","javascript","mediawiki","mediawiki-api","python"],"latest_commit_sha":null,"homepage":"https://wiki.factorio.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bilka2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-06-10T16:08:36.000Z","updated_at":"2025-08-29T09:47:02.000Z","dependencies_parsed_at":"2023-11-10T14:43:27.079Z","dependency_job_id":"1e862a78-cd48-4ad1-843c-bf1ad60443e2","html_url":"https://github.com/Bilka2/Wiki-scripts","commit_stats":{"total_commits":477,"total_committers":2,"mean_commits":238.5,"dds":0.04612159329140464,"last_synced_commit":"662d9d79a2a7228ad86cd2ed61fe1b8d85cca8be"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Bilka2/Wiki-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bilka2%2FWiki-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bilka2%2FWiki-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bilka2%2FWiki-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bilka2%2FWiki-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bilka2","download_url":"https://codeload.github.com/Bilka2/Wiki-scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bilka2%2FWiki-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000641,"owners_count":26082818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["factorio","javascript","mediawiki","mediawiki-api","python"],"created_at":"2024-09-26T05:24:11.791Z","updated_at":"2025-10-08T20:35:45.610Z","avatar_url":"https://github.com/Bilka2.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wiki scripts\n\nScripts used on the [factorio wiki.](https://wiki.factorio.com)\n\n## The javascript files in this repo\n\nCommon.js - Scripts used for more than one module of wiki scripts; [location on the wiki.](https://wiki.factorio.com/MediaWiki:Common.js)\n\nInfobox-move.js - Scripts used to move the infoboxes. Used once. Currently not on the wiki because they don't need to be used again.\n\nBot_common.js - All scripts that can only be used by User:BilkaBot because they are located on the [bot's common.js page.](https://wiki.factorio.com/User:BilkaBot/common.js)\n\nOther js files: Misc scripts that are not not used regularly\n\n## Python files in this repo\n\nutil.py - Utility functions, such as logging in. Needs the bot-credentials.json file. Format of that file:\n\n```json\n{\n  \"username\": \"\u003cName of the bot\u003e\",\n  \"password\": \"\u003cPassword for the bot, base64encoded\u003e\"\n}\n```\n\nEncoding the password:\n\n```py\nimport base64\nprint(base64.b64encode('\u003cpassword\u003e'.encode('utf8')).decode('utf8'))\n```\n\nanalytics.py - Put the top pages pulled from google analytics onto the wiki. Needs analytics.csv and totals_analytics.csv.\n\nget_analytics.py - Get the analytics from Matomo and save them in analytics.csv and totals_analytics.csv. Needs the matomo-credentials.json file. Format of that file:\n\n```json\n{\n  \"token\": \"\u003cthe matomo api token\u003e\"\n}\n```\n\nnew_fff.py - Get the latest FFF and put it on a page if it isn't already on there.\n\nnew_version.py - If provided the forum post number and version number it will put it on a page if it isn't already on there.\n\nredirects.py - Generates a list of redirects, including how many pages link to them. Puts the list on a page.\n\nwanted_pages.py - Generates a list of wanted pages (red links), including how many pages link to them and for wanted language pages some info about the English page. Puts the list on a page.\n\ngenerate_full_types.py - Read the Factorio source files to semi-automatically generate the documentation for a given prototype.\n\ninfobox_updating.py - Updates the infoboxes on the wiki. Needs the newest version of [these files](https://github.com/demodude4u/Java-Factorio-Data-Wrapper/tree/master/FactorioDataWrapper/output) as input.\n\nmisc_scripts.py - Misc scripts that are not not used regularly\n * used_as_ammo_by_in_infobox() - Set the \"used as ammo by\" property in an infobox.\n * infobox_category_change() - Change category in infoboxes in a list of pages.\n * make_type() - Easily format a property for a prototype page.\n * check_if_all_prototypes_are_on_page() - Check if all the prototype types listed in a file are also present on a wiki page.\n * update_icons() - Uses data/icons to update those icons on the wiki.\n * convert_data_raw() - Uses infobox data to generate the correct format for the [Data.raw](https://wiki.factorio.com/Data.raw) page.\n\nOther files in this repo:\n\nprototype-types.json - Mapping of prototype page names to actual prototype types from 2019-01-21, used by (now removed) prototype_types_on_individual_pages() script.\n\nDependencies:\n\n* feedparser\n* requests\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilka2%2Fwiki-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbilka2%2Fwiki-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilka2%2Fwiki-scripts/lists"}