gopiashokan commited on
Commit
b67475d
·
verified ·
1 Parent(s): 78ba902

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -11
app.py CHANGED
@@ -506,17 +506,22 @@ class linkedin_scraper:
506
 
507
  # Display the Data in User Interface
508
  add_vertical_space(1)
509
- for i in range(0, len(df_final)):
510
-
511
- st.markdown(f'<h3 style="color: orange;">Job Posting Details : {i+1}</h3>', unsafe_allow_html=True)
512
- st.write(f"Company Name : {df_final.iloc[i,0]}")
513
- st.write(f"Job Title : {df_final.iloc[i,1]}")
514
- st.write(f"Location : {df_final.iloc[i,2]}")
515
- st.write(f"Website URL : {df_final.iloc[i,3]}")
516
-
517
- with st.expander(label='Job Desription'):
518
- st.write(df_final.iloc[i, 4])
519
- add_vertical_space(3)
 
 
 
 
 
520
 
521
 
522
  def main():
 
506
 
507
  # Display the Data in User Interface
508
  add_vertical_space(1)
509
+ if len(df_final) > 0:
510
+ for i in range(0, len(df_final)):
511
+
512
+ st.markdown(f'<h3 style="color: orange;">Job Posting Details : {i+1}</h3>', unsafe_allow_html=True)
513
+ st.write(f"Company Name : {df_final.iloc[i,0]}")
514
+ st.write(f"Job Title : {df_final.iloc[i,1]}")
515
+ st.write(f"Location : {df_final.iloc[i,2]}")
516
+ st.write(f"Website URL : {df_final.iloc[i,3]}")
517
+
518
+ with st.expander(label='Job Desription'):
519
+ st.write(df_final.iloc[i, 4])
520
+ add_vertical_space(3)
521
+
522
+ else:
523
+ st.markdown(f'<h5 style="text-align: center;color: orange;">No Matching Jobs Found</h5>',
524
+ unsafe_allow_html=True)
525
 
526
 
527
  def main():