Giter VIP home page Giter VIP logo

web-recommendations-system's Introduction

Recommendations System for KlingtGut

Contents:

Setup:

Requirements:

  • python 3.11
  • pip

Libraries:

  • requests
  • pandas
  • numpy
  • python-dateutil

Note

you only need to install pip than you can run the following command to install the libraries

$ python ./hashtags_for_user/base_info.py

this will install all the required libraries

Files:

  • base_info.py
  • hashtags_from_post.py
  • post_score.py

Warning

you ne d to have all the files in the same folder named hashtags_for_user

Get hashtags from a seen post

command:

syntax:

$ python /location/to/file/hashtags_from_post.py {userid} {postid}

example:

$ python hashtags_for_user/hashtags_from_post.py 65846334e4aa365544dd06af 65b111bdd0ba272101646dad

Output:

Filename:

syntax:

hashtags-{userid}-.csv

example:

hashtags-65846334e4aa365544dd06af-.csv

Filelayout:

syntax:

none viewed liked comments posted score
test 0 0 0 0 0
{hashtag} {a} {b} {c} {d} {$a + 10 * b + 5 * c + 10 * d$}

layout:

,viewed,liked,comments,posted,score
test,0,0,0,0,0

example:

none viewed liked comments posted score
test 0 0 0 0 0
#musik 5 4 1 1 60
#python 5 4 1 1 60
layout:
,viewed,liked,comments,posted,score
test,0,0,0,0,0
#musik,5,4,1,1,60
#python,5,4,1,1,60

Score post based on hashtags for user

command:

syntax:

$ python /location/to/file/post_score.py {userid} {postid}

example:

$ python hashtags_for_user/post_score.py 65846334e4aa365544dd06af 65b111bdd0ba272101646dad

Output:

Filename:

syntax:

post-scores-{userid}-.csv

example:

post-scores-65846334e4aa365544dd06af-.csv

Filelayout:

syntax:

none viewed score
0 False 0.0
{postid} {boolean} {$postscore / nhashtags + likes * 10$}

layout:

,viewed,score
0,False,0.0

example:

none viewed score
0 False 0.0
65b111bdd0ba272101646dad False 70.0
layout:
,viewed,score
0,False,0.0
65b111bdd0ba272101646dad,False,70.0

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.