balvinderz / animewatcher

The goal of this project/app is to let the user watch anime without ads. It uses Jsoup to extract data from the website and Exoplayer to show videos.
85 stars 20 forks source link

Does the anime need to be in the json file or does it download? #3

Closed MoptopX closed 4 years ago

MoptopX commented 5 years ago

Is the json file just for the anime list function, will it still show new anime without needing to update it? Also, how do I generate the animelist.json file?

balvinderz commented 5 years ago

Yes the json file is just for the anime list function . I m uploading the python program to generate animelist.json . you can check it out :) . The animelist.json file does not show new anime. I update it every month .

balvinderz commented 5 years ago

https://github.com/balvinderz/animewatcher/blob/master/generateanimelist.py

MoptopX commented 5 years ago

Ok thanks, also can you make the anime page look better, sometimes the description falls off the image, looks ugly

MoptopX commented 5 years ago

That link to the regenerate thing is dead?

balvinderz commented 5 years ago

I removed everything

MoptopX commented 5 years ago

Why

balvinderz commented 5 years ago

Because you guys uploaded it on playstore or created your own modified app without giving me credits.

MoptopX commented 5 years ago

I didn't do anything?, I just cloned this like a few hours ago because I was trying to add Kitsu functions

MoptopX commented 5 years ago

Could I have that file please though?

balvinderz commented 5 years ago

u changed your whole backend . Why do u need it now ?

MoptopX commented 5 years ago

Huh, what are you talking about?

MoptopX commented 5 years ago

I just cloned this yesterday

balvinderz commented 5 years ago

You arr moptop32 from reddit right?

MoptopX commented 5 years ago

Nope, I don't use Reddit.

MoptopX commented 5 years ago

My name is Moptop because its an insult someone gave someone else in my hero academia. I thought it was a good username.

balvinderz commented 5 years ago
import requests
import json
from bs4 import *
baseurl ="https://www4.gogoanime.io/"
jsonlist=[]
for i in range(1,3):
    stringi=str(i)
    currenturl=baseurl+"anime-list.html?page="+stringi
    page=requests.get(currenturl)
    soup=BeautifulSoup(page.content,'html.parser')
    lis=soup.find('ul',class_='listing').find_all('li')
    for li in lis:
        x=BeautifulSoup(li.get('title'),'html.parser')
        imagelink=x.find('img').get('src')
        animelink=baseurl+li.find('a').get('href')
        title=x.find_all('div')[1].find('a').text
        #print(title)
        #print(animelink)
        anime={
            "anime" : {
                "Anime name" : title,
                "link" : animelink,
                "imagelink" : imagelink
                }
            }
        jsonlist.append(anime)
with open('animelist.json', 'w') as json_file:  
    json.dump(jsonlist, json_file)

This is a python file .

MoptopX commented 5 years ago

Thank you. When I finish kitsu integration and some other coolio features where do I send pull request though?

balvinderz commented 5 years ago

No need to send pull request. i m closing this repository

MoptopX commented 5 years ago

Oh ok, that is kind of sad, what happened?

balvinderz commented 5 years ago

A guy uploaded this app on playstore under his name .

MoptopX commented 5 years ago

I dont know how they got that app through even. Piracy apps are illegal on that store

MoptopX commented 5 years ago

Just report him for stealing the app, and report him for it being pirate app

balvinderz commented 5 years ago

I did

flitcode commented 5 years ago

I dont think its a coincidence having the same username moptop. I think you are the guy from AniStream, dont play dumb.

MoptopX commented 5 years ago

I do not use reddit or 4chan or anything

MoptopX commented 5 years ago

my username is a popular insult from a anime tv show

balvinderz commented 5 years ago

Ya he is . He even has a repository named anistream, i cant do anything so i gave him the python code :/

flitcode commented 5 years ago

Do you really think I am dumb. Look at your repositories. It says Anistream.

MoptopX commented 5 years ago

Thats the name of the app I want to make? I have no idea what you guys are talking about but I'm making my own app with this, its supposed to take stuff from anihub

MoptopX commented 5 years ago

Anistream-sync is a repo because I was planning to make a kitsu sync extension

flitcode commented 5 years ago

Hahahahahha what a coincidence😑

MoptopX commented 5 years ago

No idea what you are saying still, but I will most likely make my app public once it goes live, do I have permission to make it open source?

flitcode commented 5 years ago

https://app.anistream.xyz/ an app published today with the same name of your repository published by a guy named Moptop32. This says it all.

MoptopX commented 5 years ago

I have had my repository open for at least a month before today

MoptopX commented 5 years ago

And it has been completely empty for all the time because I gave up on making an extension that worked for more than one site.

balvinderz commented 5 years ago

Do whatever you want. I am not in the mood of arguing. If you are blindly copying, it won't do anything good to you.

MoptopX commented 5 years ago

Ok whatever then