Skip to content

software-students-fall2023/5-final-project-solo-maker

Repository files navigation

Note app + web crawler

We can take add/revise/delete notes with note title and Description in the Note app. Also, there is a web crawler integrated in the website called scapy to collect and visualized data for video website Bilibili(Chinese biggest video website, description below)

note: The whole system is build on flask + jquery. Because I don't want to get annoyed by jquery environment. So I package my jquery build dictionary in the file. So great percentage of code is js. DONE

Badges

Docker Build and Deploy

note-App-test

scapy-backend-test

Container Images

Below are the DockerHub links to the container images for each custom subsystem:

Teammates

Meet our team members:

Deployment

Go directly to this link

http://167.71.92.148:5000/

Or

git clone https://github.com/software-students-fall2023/5-final-project-solo-maker

Change url 5-final-project-solo-maker/note-app/src/templates/pages/scrapy-bilibili.html from url: "http://167.71.92.148:5050/api/v1/datasource" to url: "http://localhost:5050/api/v1/datasource" and change docker-compose file to build locally instead of pulling latest from docker

version: '3'
services:
  db:
    image: mongo
    image: mongo:4.4
    container_name: my_mongo_db
    ports: 
      - "27017:27017"

  note-app:
    build: ./note-app
    image: note_app
    image: asukatan/note-app
    container_name: my_note_app
    volumes:
      - ./note-app:/usr/src/app
    tty: true

  scapy-backend:
    build: ./scapy-backend
    image: scapy_backend
    image: asukatan/scapy-backend
    container_name: my_scapy_backend
    volumes:
      - ./scapy-backend:/usr/src/app

then

docker docker-compose up -d

Go to web

http://127.0.0.1:5000

How to use

Note app is straight forward, which I will not introduce it.

How to use web crawler

example usage:

https://space.bilibili.com/1525355?spm_id_from=333.337.0.0 and find his UID 1525355

Make sure the content creator have Collection

Type UID into search box, and Get the result

Testing crawler

provide UID for testing:

1525355

546195

15773384

What is bilibili

A.K.A Chinese Youtube with millions users

the most popular video website in China

Bilibili (often referred to as 哔哩哔哩 or B Site) is one of Chi na's most popular video sharing websites among young people. Founded in 2009, Bilibili initially started as a video sharing website focused on ACG (Animation, Comics, and Games) culture but has since expanded to include a wide variety of content, including lifestyle, technology, entertainment, and more.

Website

Bilibili Official Website.

First Coverage Report

Name Stmts Miss Cover
config.py 12 0 100%
src/init.py 10 0 100%
src/models.py 14 0 100%
src/views.py 47 0 100%
tests/init.py 0 0 100%
tests/test_model.py 36 0 100%
tests/test_view.py 53 0 100%
TOTAL 172 0 100%

Second Coverage Report

Name Stmts Miss Cover
init.py 0 0 100%
app.py 19 1 95%
scrapy.py 13 0 100%
test_crawler.py 19 0 100%
TOTAL 51 1 98%

About

5-final-project-solo-maker created by GitHub Classroom

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages