From 53da95395aad137bd0ab2b2f4ed1e9e3cb00c962 Mon Sep 17 00:00:00 2001 From: Sebastian Korotkiewicz Date: Sat, 19 Mar 2022 09:17:55 +0100 Subject: Initial commit --- README.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..2e5fe92 --- /dev/null +++ b/README.md @@ -0,0 +1,40 @@ +# Sites Roulette + +My simple application to view user pages on a given server, + +curl.php gets the data from the main page of the server, parses it and writes to the database, thanks to cron you can easily update the database for example once a day. + +it's a very simple script, if you want to run it, you need to personalize some things, like the name of your home directory or regex to download users + +to change: + +- public_html/browser/get.php + + - require_once('/home/grizzly/store/browser/db.php'); + - die(header("Location: https://tilde.team/~grizzly/browser/?member=" . $row['login_name'])); + +- public_html/browser/index.php + + - s/tilde.team/you.website/ + +- store/browser/curl.php + + - require_once ('/home/grizzly/store/browser/db.php'); + - curl_setopt($c, CURLOPT_URL,'https://tilde.team/'); + - preg*match_all('/
  • ~(.\_)<\/a><\/li>/', $data, $matches); + +- store/browser/update.sh + +and add cron.txt content to your cron: `crontab -e` + +--- + +the script was created out of "need", I wanted to browse all user pages and I didn't want to open thousands of tabs, so this is "sites roulette". + +you can modify it, share it freely + +--- + +if you want to change or improve something, clone the repo, add changes, upload to some git server and send me the link, if you are a user of tilde.institute, send me an email with the path to your repo on the server + +=> grizzly/at/nand.sh -- cgit 1.4.1-2-gfad0