Parse data from sites  to RecyclerView using Jsoup | Android Studio - Part 1

Parse data from sites to RecyclerView using Jsoup | Android Studio - Part 1

Nick Dev

4 года назад

29,741 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Simo El abbassi
Simo El abbassi - 12.08.2022 15:10

Very nice thanks bro

Ответить
Ketak Singh
Ketak Singh - 25.07.2022 00:29

Awesome

Ответить
Local Bus
Local Bus - 24.06.2022 20:39

Sir the data is loged into terminal but pics are not showing in reclyerview

Ответить
56_Shekhar Shinde
56_Shekhar Shinde - 17.03.2022 18:12

Very Helpful

Ответить
Убийца Хомяков
Убийца Хомяков - 11.02.2022 21:13

Через библиотеку Picasso в адаптере устанавливаю картинку и при скроллинге вверх начинает как бы "лагать", как понял на месте картинки было пусто и резко она появилась. Как с этим бороться?

Ответить
The Classy Cat
The Classy Cat - 25.12.2021 10:22

Do not use dp to hardcode the size of a view. 250dp in a galaxy a10 is very different from a xiaomi redmi 9 for example. Always use wrap-content and match-parent, use layout-weight if you need.

Ответить
Technology Tech
Technology Tech - 01.12.2021 16:36

that code is not working

Ответить
forest survivor
forest survivor - 30.10.2021 17:06

Wow . I was finding from last 5 days to make a Twitter bot .so finally i got it .
My bot was also working but now it will good work

Ответить
Jose Francisco G.
Jose Francisco G. - 26.09.2021 22:47

Thanks so much.

Ответить
testing eye
testing eye - 28.08.2021 11:17

Love your Content buddy!

Ответить
Yugant
Yugant - 18.07.2021 23:14

Nice tut, but I'm having an error my image url is loading but alternatively and b/c of this my app is getting crashed please help me out!!

Ответить
YastoBoy
YastoBoy - 06.07.2021 21:02

это приложение не работает

Ответить
Hüseyin Tat
Hüseyin Tat - 27.06.2021 19:36

i did everything same but it gives me lots of errors.I couldnt figure out the problem.But thank you a lot about this video!

Ответить
Behnam Kiani
Behnam Kiani - 27.05.2021 11:29

thank you so much, but *********** dark theme is worst theme ever ************** please consider it in future tutorials

Ответить
Yasin Aktas
Yasin Aktas - 03.05.2021 15:18

Thank You! Thank You! Thank You! Thank You! Thank You! Thank You! Thank You! Thank You! Thank You! Thank You!

Ответить
Japheth Olisa
Japheth Olisa - 01.05.2021 21:22

And in case picasso find empty/no image it crashes. How can I use a particular image in a case where it could not find any image.
I guess it would be done in the Adapter, but I don't know the exact code to add to it or replace

Ответить
magicalhats
magicalhats - 26.04.2021 05:59

Thanks, but perhaps a bigger font. My macbook air screen makes the text too small.

Ответить
Japheth Olisa
Japheth Olisa - 14.04.2021 19:59

You have really helped me alot with the videos from part 1-4. What if I want to add admob ads or precisely to the recyclerview?
Thanks

Ответить
Mayank Dungarwal
Mayank Dungarwal - 26.02.2021 18:04

whenever i run the app it crashes log cat is showing IllegalArgumentError. What's the solution for this?

Ответить
Edu Misina
Edu Misina - 31.01.2021 01:06

Sir, if a website has a button to load more items, how can i get all items?

Ответить
Suyash Singh
Suyash Singh - 25.01.2021 08:18

In my project Async Task is getting show with a line through it which obviously means it can't be used . What can I do?

Ответить
Valera Fox
Valera Fox - 04.01.2021 19:48

Итс вэри гуд.

Ответить
Jhan velasquez
Jhan velasquez - 13.12.2020 04:10

hello friend, good job. Two questions.
1. How to parse data from Multiple site ...?
2. How to parse data from one site with multiple pages or pagination ...?

Ответить
junenye
junenye - 06.12.2020 22:04

I get the IllegalArgumentException: Path must not be empty from inside the onBindViewHolder (when loading the image view) This causes the app to crash. I used your website to test the code. What can be done? Thank you!

Ответить
Lru Cache
Lru Cache - 06.12.2020 16:44

E/AndroidRuntime: FATAL EXCEPTION: main
Process: ru.embersoft.parsesitedata, PID: 26116
java.lang.IllegalArgumentException: Path must not be empty.
at com.squareup.picasso.Picasso.load(Picasso.java:332)
at ru.embersoft.parsesitedata.ParseAdapter.onBindViewHolder(ParseAdapter.java:39)
at ru.embersoft.parsesitedata.ParseAdapter.onBindViewHolder(ParseAdapter.java:18)
at androidx.recyclerview.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6781)
at androidx.recyclerview.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6823)
at androidx.recyclerview.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5752)
at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:6019)
at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5858)
at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5854)
at androidx.recyclerview.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2230)
at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1557)
at androidx.recyclerview.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1517)
at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:612)
at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3924)
at androidx.recyclerview.widget.RecyclerView.dispatchLayout(RecyclerView.java:3641)
at androidx.recyclerview.widget.RecyclerView.onLayout(RecyclerView.java:4194)
at android.view.View.layout(View.java:22844)
at android.view.ViewGroup.layout(ViewGroup.java:6389)
at androidx.constraintlayout.widget.ConstraintLayout.onLayout(ConstraintLayout.java:1915)
at android.view.View.layout(View.java:22844)
at android.view.ViewGroup.layout(ViewGroup.java:6389)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
at android.view.View.layout(View.java:22844)
at android.view.ViewGroup.layout(ViewGroup.java:6389)
at androidx.appcompat.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:446)
at android.view.View.layout(View.java:22844)
at android.view.ViewGroup.layout(ViewGroup.java:6389)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
at android.view.View.layout(View.java:22844)
at android.view.ViewGroup.layout(ViewGroup.java:6389)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1829)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1673)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1582)
at android.view.View.layout(View.java:22844)
at android.view.ViewGroup.layout(ViewGroup.java:6389)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
at com.android.internal.policy.DecorView.onLayout(DecorView.java:784)
at android.view.View.layout(View.java:22844)
at android.view.ViewGroup.layout(ViewGroup.java:6389)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:3470)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2938)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1952)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8171)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:972)
at android.view.Choreographer.doCallbacks(Choreographer.java:796)
at android.view.Choreographer.doFrame(Choreographer.java:731)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:957)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7656)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

Ответить
Abdur Rehman Khan
Abdur Rehman Khan - 25.11.2020 08:16

Hey brother,
Thanks for the video, I have question that how can we get to know about which class should be selected like you select "Thumbnail" under span?

Ответить
poro ko
poro ko - 03.11.2020 11:12

thanks man, i been searching it for 3h and nobody actually give clear answer but you did !
this helped me lot

Ответить
Alejandro Agua
Alejandro Agua - 01.11.2020 21:21

Can't see any text, only worms

Ответить
Murtaza Abdul Wahid
Murtaza Abdul Wahid - 29.10.2020 00:02

Hey Bro! Your tutorial is really helpful! But i want to parse data from the site that has user login page.. In short I want parse data of User Backend from the site like Amazon or Lazada. Is that possible?

Ответить
Ghaith Muhammed
Ghaith Muhammed - 07.10.2020 22:26

Can you make it with kotlin plz

Ответить
Harsh Patel
Harsh Patel - 10.08.2020 13:30

Great Video, but
1. How to parse data from Multiple site...?
2. How to parse data from one site with multiple pages or pagination...?
3. Also how to parse data from constantly changing images (new added data or image)

Ответить
mo. royan
mo. royan - 08.08.2020 05:24

THANKS BRO. GOOD JOB!

Ответить
iKhifeli
iKhifeli - 07.08.2020 14:36

This helped me a lot! Thank you so much buddy!

Ответить
Swapnali Jangle
Swapnali Jangle - 27.07.2020 18:53

Increase text size or zoom atleast

Ответить
Hatty
Hatty - 17.07.2020 16:31

may you make a kotlin series about this please?

Ответить
Oru Mori
Oru Mori - 16.07.2020 12:02

How would do something like this, in Reddit that has constant changes to threads,images, every time you go their webpage. I tried using old.reddit to get the images and title but I can't do it. Any help or advice would be nice.

Ответить
Parhlad suthar
Parhlad suthar - 18.06.2020 10:42

Thanks, dude your tutorial is really helpful for me. How to parse data if the site has multiple pages or pagination?

Ответить
Sarthak Kalpasi
Sarthak Kalpasi - 09.05.2020 06:29

cant you just zoom it a bit :-|

Ответить
Andre NeedsAmbulance
Andre NeedsAmbulance - 30.04.2020 18:41

@Nick Titov

HI there, I'm facing some issues right now, perhaps you could help me out, I am getting a nullpointerexception for the line progressBar.setVisibility(View.VISIBLE); . i have searched up on stack overflow but can't seem to find a solution. It would be great to hear a response!

Ответить
Nebojsa Vujic
Nebojsa Vujic - 24.02.2020 11:29

Great video Nick. But how to parse data if site have several pages ?

Ответить
Abdulkadir Mete
Abdulkadir Mete - 15.02.2020 11:57

How to parse html that hidden by javascript ?

Ответить
Hatty
Hatty - 02.01.2020 04:50

not working, the project is not working.

Ответить
TahsinGamer Z
TahsinGamer Z - 26.12.2019 16:36

How to refresh data is there a way to add a refresh button so i can see new contents without closing App an reloading it
i thing you missed this future

Ответить
TheKroyaard COM
TheKroyaard COM - 11.12.2019 20:35

Hiii bro nice video, can you make download file from website using jsoup.

Ответить
Mandy Ronald
Mandy Ronald - 20.11.2019 19:56

hi bro thanks for the awesome tutorial . do you use the same procedure to add a video into the app?

Ответить
daniel kain sanchez
daniel kain sanchez - 23.10.2019 05:57

good job buddy. How can you make the images press and open the link?

Ответить