Coder Social home page Coder Social logo

firefox-sync-client-php's Introduction

Firefox Sync Client
Mike Rowehl ([email protected])

I've been looking for ways to get the data out of my browser to do additional
stuff with it, like sync up the stuff I've already read across mobile and
desktop with my Google Reader account and check off stuff I've already seen.
Or providing a way to grep through the text of all the pages I've browsed
recently. It really needs to include my mobile browsing to be useful for me
though.

I started poking around with Chrome Sync and Firefox Sync, and was really
happy about Firefox Sync keeping history synced up between desktop and mobile.
Hackery ensued. Lots has changed in the sync service recently. I did a bunch
of poking around in the 4.0 beta release source code, and changing around my
own weave_minimal server install, and reading threads in the mailing list. I 
finally got something that consistently pulls data out of the Firefox Sync
servers though!

All the main program does currently is yank a collection for the server and
dump out the info, but it's a start.  There are a few bits of info you'll
need to get your own data out:

- the username (which the current betas force to email address) and password
- your sync key, which you can find in the sync pane under Preferences
- the weave node your account is assigned to
- the name of the collection to dump (ie. 'history' or 'bookmarks')

You can find the weave node using the node_lookup.php program. ie:

  miker-air:firefox_sync_client mikerowehl$ php ./node_lookup.php [email protected]
  Querying https://auth.services.mozilla.com/user/1.0/5dxur6wmsmd4esj4edssy7kdrsjgvpqf/node/weave
  Node endpoint: https://phx-sync462.services.mozilla.com/

Once you have that endpoint you can run the sync program to dump your history:

  miker-air:firefox_sync_client mikerowehl$ php ./sync.php [email protected] secretpass a-bbbbb-ccccc-ddddd-eeeee-fffff https://phx-sync462.services.mozilla.com/ bookmarks

And you should get back a dump of the data from that collection.

firefox-sync-client-php's People

Contributors

mikerowehl avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.