Commit e4c9a4d2 authored by Dom Walden's avatar Dom Walden
Browse files

Fix link

parent e5a4aec4
......@@ -35,7 +35,7 @@ It assumes that there is at least one log entry associated with each IP address
It will output another .csv file with two rows for each IP address. One row lists the "expected" result, one the "actual" result.
1. Setup pywikibot using the instructions here https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation
2. Download and copy https://gitlab.wikimedia.org/DomWalden/ipinfo-testing/-/blob/main/ipinfo_api_response.php into the `scripts/` directory in pywikibot
2. Download and copy https://gitlab.wikimedia.org/DomWalden/ipinfo-testing/-/blob/main/ipinfo_api_response.py into the `scripts/` directory in pywikibot
3. Run: `python3 pwb.py ipinfo_api_response -i <input csv> -o <output csv> -n -lang:<lang> -family:<wiki>`
- Where `<input csv>` is the .csv file generated by `erd_enterprise.php`
- `<lang>` and `<wiki>` will depend on which environment you are testing IPInfo on
......@@ -65,7 +65,8 @@ If you use docker, you might instead want to add:
$wgUsePrivateIPs = true;
Then run: `python3 edit_from_ip.py -u $url -i $ip [-t $title]`
where:
Where:
- `$url` is the URL of the wiki you want to test, including '/w/api.php'
- `$ip` is the IP you want to simulate an edit from
- `$title` is the page you want to edit (this is optional, if you don't pass this parameter it will edit the Main_Page)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment