mcdonalds_scraper 1.4.0 copy "mcdonalds_scraper: ^1.4.0" to clipboard
mcdonalds_scraper: ^1.4.0 copied to clipboard

discontinued

Used to scrape McDonald's PeopleStuff for MySchedule. Only usable by McDonald's employees (tested UK only)

Used to scrape McDonald's PeopleStuff for MySchedule

Created from templates made available by Stagehand under a BSD-style license.

Usage #

A simple usage example:

import 'package:mcdonalds_scraper/mcdonalds_scraper.dart';
import 'dart:io';

Future<Map<String, String>> getCredentials() async {
  var config = File('credentials.txt');
  var contents;

  // Put each line of the file into its own string.
  contents = await config.readAsLines();
  
  return {"employeeId": contents[0], "password": contents[1]};
}

main() async {

  Map<String, String> creds = await getCredentials();

  var scraper = Scraper();
  await scraper.login(creds["employeeId"], creds["password"]);
  var htmlData = await scraper.scrapeHtml();
  var allPersonData = await scraper.extractPersonData(htmlData);
  var taskData = await scraper.extractTaskData(htmlData, DateTime.parse("2019-08-10 20:18:04Z"));
  var personData = scraper.extractSinglePersonData(allPersonData, creds["employeeId"]);
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

1
likes
40
pub points
0%
popularity

Publisher

unverified uploader

Used to scrape McDonald's PeopleStuff for MySchedule. Only usable by McDonald's employees (tested UK only)

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

dio, html, intl, path, xml2json

More

Packages that depend on mcdonalds_scraper