Code Monkey home page Code Monkey logo

export-bitly-data's Introduction

Export Bitly Data

About

This Python script is designed to process HTTP Archive (HAR) files exported from Bitly and extract short link data from them. It offers the flexibility to export the extracted data either to JSON format or to a SQLite database.

The script assumes that the input HAR file contains network traffic data captured from interactions with the Bitly API, specifically focusing on requests related to Bitlinks.

Example Usage

  1. Export to JSON
python main.py --input bitly_data.har --export-json --output-json link_export.json
  1. Export Bitly data to SQLite:
python main.py --input bitly_data.har --export-sqlite --output-sqlite bitly_export.db

Produce HAR File

Mozilla Firefox:

  1. Navigate to Bitly.com and sign in

  2. Click the "Links" navigation option

  3. Open Developer Tools: Right-click anywhere on the page and select "Inspect Element" from the context menu. Alternatively, press Ctrl + Shift + I (Windows/Linux) or Cmd + Option + I (Mac) to open Developer Tools.

  4. Navigate to the "Network" Tab: In Developer Tools, click on the "Network" tab.

  5. Start Recording: Toggle the network recording by clicking the round button with a dot inside (Start Recording) located at the top-left corner of the "Network" tab.

  6. Record Network Activity: Scroll down to the very end beginning of your Bitly links history.

  7. Export HAR File: After recording the network activity, right-click anywhere on the list of network requests in the "Network" tab. Then, select "Save All As HAR" to save the network activity as a HAR file.

Disclaimer

Please be advised that this code is offered without any warranty, whether implied or express. The use of this code is at your own risk. The author shall not be held responsible for any damages or issues that may arise from its use.

It is essential to ensure that your use of this code complies with the Terms of Service (TOS) of the platforms or services involved. Any misuse or violation of TOS is solely the responsibility of the user.

export-bitly-data's People

Contributors

dmoruzzi 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.