Skip to content

Commit

Permalink
Remove scraping stuff we don't use
Browse files Browse the repository at this point in the history
  • Loading branch information
jayktaylor committed Sep 19, 2023
1 parent cb67396 commit da4f084
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions grabDeletedFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

require_once __DIR__ . '/../maintenance/Maintenance.php';
require_once 'includes/mediawikibot.class.php';
require_once 'includes/mediawikibotHacks.php';

class GrabDeletedFiles extends FileGrabber {

Expand Down Expand Up @@ -45,23 +44,6 @@ public function execute() {

$this->output( "Working...\n" );

if ( $scrape ) {
// If we're screenscraping, we need to use a different instance of MediaWikiBot.
$this->bot = new MediaWikiBotHacked(
$url,
'json',
$this->user,
$password,
'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1'
);
if ( !$this->bot->login() ) {
$this->output( "Logged in as {$this->user}...\n" );
$this->lastLogin = time();
} else {
$this->fatalError( "Failed to log in as {$this->user}." );
}
}

$skipMetaData = $this->hasOption( 'skipmetadata' );

if ( !$skipMetaData ) {
Expand Down

0 comments on commit da4f084

Please sign in to comment.