| | |
| | | import com.yeshi.buwan.service.inter.juhe.InternetSearchVideoService; |
| | | import com.yeshi.buwan.service.inter.juhe.YouKuService; |
| | | import com.yeshi.buwan.util.factory.InternetSearchVideoFactory; |
| | | import com.yeshi.buwan.youku.YouKuApiUtil; |
| | | import com.yeshi.buwan.youku.entity.YouKuShowDetail; |
| | | import com.yeshi.buwan.videos.youku.YouKuApiUtil; |
| | | import com.yeshi.buwan.videos.youku.entity.YouKuShowDetail; |
| | | import org.junit.Test; |
| | | import org.junit.runner.RunWith; |
| | | import org.springframework.test.context.ContextConfiguration; |
| | |
| | | import org.springframework.test.context.web.WebAppConfiguration; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.swing.*; |
| | | import java.util.List; |
| | | |
| | | // |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @Test |
| | | public void test2() { |
| | | List<YouKuShowDetail> details = youKuService.list("电影", 1, 2000); |
| | |
| | | } |
| | | |
| | | @Test |
| | | public void test3() { |
| | | try { |
| | | youKuVideoUpdate.updatebyCategoryUrl("https://www.youku.com/category/show/c_96_s_1.html?theme=dark"); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | @Test |
| | | public void getDetail() { |
| | | YouKuShowDetail detail = YouKuApiUtil.getShowDetail("ceba4745ea10415eb791"); |
| | | try { |