@@ -294,14 +294,14 @@ final class TrendViewReactor: Reactor {
294
294
currentPeriodStars: 0 ,
295
295
contributors: [ ] )
296
296
297
- /// Repository Info
298
- let repositoryInfo = item. xpath ( " .//h1[@class='h3 lh-condensed']/a " ) //[index]
299
- let description = item. xpath ( " .//p[@class='col-9 color-text-secondary my-1 pr-4'] " ) //[index]
297
+ // Repository Info
298
+ let repositoryInfo = item. xpath ( " .//h1[@class='h3 lh-condensed']/a " )
299
+ let description = item. xpath ( " .//p[@class='col-9 color-fg-muted my-1 pr-4'] " )
300
300
let languageColor = item. xpath ( " .//span[@class='d-inline-block ml-0 mr-3']/span[1] " )
301
301
let language = item. xpath ( " .//span[@class='d-inline-block ml-0 mr-3']/span[2] " )
302
- let star = item. xpath ( " .//div[@class='f6 color-text-secondary mt-2']/a[1] " ) //[index]
303
- let fork = item. xpath ( " .//div[@class='f6 color-text-secondary mt-2']/a[2] " ) //[index]
304
- let todayStar = item. xpath ( " .//div[@class='f6 color-text-secondary mt-2']/span[@class='d-inline-block float-sm-right'] " ) //[index]
302
+ let star = item. xpath ( " .//div[@class='f6 color-fg-muted mt-2']/a[1] " )
303
+ let fork = item. xpath ( " .//div[@class='f6 color-fg-muted mt-2']/a[2] " )
304
+ let todayStar = item. xpath ( " .//div[@class='f6 color-fg-muted mt-2']/span[@class='d-inline-block float-sm-right'] " )
305
305
// let contributors = item.xpath(".//div[@class='f6 text-gray mt-2']/span[@class='d-inline-block mr-3']")
306
306
307
307
// repository Info
@@ -355,9 +355,15 @@ final class TrendViewReactor: Reactor {
355
355
/*
356
356
/html/body[@class='logged-in env-production page-responsive']/div[@class='application-main ']/main/div[@class='position-relative container-lg p-responsive pt-6']/div[@class='Box']/div[2]/article[@class='Box-row'][1]/div[@class='f6 color-text-secondary mt-2']/span[@class='d-inline-block mr-3']/a[@class='d-inline-block'][1]/img[@class='avatar mb-1 avatar-user']/@src
357
357
*/
358
+
359
+ /*
360
+ /html/body[@class='logged-in env-production page-responsive issue-closed-done']/div[@class='application-main ']/main[@id='js-pjax-container']/div[@class='position-relative container-lg p-responsive pt-6']/div[@class='Box']/div[2]/article[@class='Box-row'][2]/div[@class='f6 color-fg-muted mt-2']/span[@class='d-inline-block mr-3']/a[@class='d-inline-block'][1]/img[@class='avatar mb-1 avatar-user']/@src
361
+ */
362
+
363
+
358
364
for i in 1 ... 5 {
359
- if let profile = item. xpath ( " .//div[@class='f6 color-text-secondary mt-2']/span[@class='d-inline-block mr-3']/a[@class='d-inline-block'][ \( i) ]/img[@class='avatar mb-1 avatar-user']/@src " ) . first? . text? . striped,
360
- let name = item. xpath ( " .//div[@class='f6 color-text-secondary mt-2']/span[@class='d-inline-block mr-3']/a[@class='d-inline-block'][ \( i) ]/@href " ) . first? . text? . striped {
365
+ if let profile = item. xpath ( " .//div[@class='f6 color-fg-muted mt-2']/span[@class='d-inline-block mr-3']/a[@class='d-inline-block'][ \( i) ]/img[@class='avatar mb-1 avatar-user']/@src " ) . first? . text? . striped,
366
+ let name = item. xpath ( " .//div[@class='f6 color-fg-muted mt-2']/span[@class='d-inline-block mr-3']/a[@class='d-inline-block'][ \( i) ]/@href " ) . first? . text? . striped {
361
367
let contributorModel = TrendRepoContributor ( name: String ( name. dropFirst ( ) ) ,
362
368
profileURL: profile)
363
369
trendRepo. contributors. append ( contributorModel)
0 commit comments