Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

University of Tuebingen #56

Open
Clausinho opened this issue Feb 6, 2021 · 1 comment
Open

University of Tuebingen #56

Clausinho opened this issue Feb 6, 2021 · 1 comment

Comments

@Clausinho
Copy link

Based on building the develop branch and changing both respective variables to "tueb"

I'm getting all the available courses:
image
image

instead of the courses I am a member of. Additionally when I try to click download on these courses, it just creates an empty directory.

I suspect this might be because the first page after logging in is the "Magazin" showing all courses, instead of just showing the courses I'm a member of, which could be the baseClass=ilPersonalDesktopGUI.

I said in #41 that I could work further upon the work of #39. I really hate java tho, so I need some pointers to the right direction.

Maybe @Tyxz has some time to explain how the flow goes. I think I will comment in his pull request.

@DeOldSax
Copy link
Owner

DeOldSax commented Feb 6, 2021

I really hate java tho,

You are not alone. Let me know if you are up for a rewrite to <insert_language> ;)

so I need some pointers to the right direction.

Sure. Check the references in the following order and let me know where you need more information :)

In that class the html code is set, which should contain the courses:

this.dashboardHTML = htmlStartpage;

The actual scraping happens here (based on the html you set above):

private List<IliasFolder> getCourses(String dashboardHtml) {

If some of the folders inside the courses are missing, then you should also find the answer in the IliasScraper
Feel free to adapt them

if (url.toLowerCase().contains("baseclass=ilrepositorygui") // kit + tueb + wbs

final boolean linkToFolder = dir.attr("href").contains("cmd=view") // kit + wbs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants