Giter Site home page Giter Site logo

aosp-phone-search's Introduction

Intro

Set of tools to parse phone data from GSM Arena's filtered search, and LineageOS device list page.

Usage

Quick environment setup

create directories for storing data:

mkdir -p data/{inputs,outputs}
pip install -r requirements.txt

Get list of phones from GSM Arena

  1. Using search function get page with the list of phones you're interested in.
  2. Save page into data/inputs/myphones.html

Generate a simplified list of desired phones

./gsm_arena_devices.sh inputs/myphones.html > outputs/myphones.list

Get List of LineageOS supported phones

  1. Open Lineage OS Devices page
  2. Save page into data/inputs/los-devices.list

Generate simplified list of LOS phones

./los_device_list.sh data/inputs/los-devices.html

Compare the lists

provided word_diff.py tool is opinionative and biased towards provided phone lists trying to find the closest matches between two lists specified:

python word_diff.py data/outputs/los_device.list data/outputs/myphones.list

Due to differences in notation etc. it's hard to find exact matches, thus tool produces colorized output similar to following:

Motorola: edge
Samsung: Galaxy Note10+ 5G
Sony: Xperia 1 II
Xiaomi: Mi 11 Lite 5G

Asus: ZenFone 8 
Asus: Zenfone 8 Flip 

Motorola: edge 20 
Motorola: Edge 20 Lite 

Motorola: edge 20 pro 
Motorola: Edge 20 Lite 

Samsung: Galaxy A52 4G 
Samsung: Galaxy A52 5G 

Samsung: Galaxy S10 5G 
Samsung: Galaxy A33 5G 

Samsung: Galaxy S10 5G 
Samsung: Galaxy A42 5G 

Xiaomi: Xiaomi 11 Lite 5G NE / 11 Lite NE 5G / Mi 11 LE 
Xiaomi: 11 Lite 5G NE 

first 4 lines are exact matches - i.e. phones that were found in both lists. Following line pairs is tool's attempt to find lines where at least 75% of the words from one string have a match in a second string (as could be seen by the last match).

unfortunately that produces a rather "noisy" output, however it does help to narrow down the search significantly.

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.